This document is archived and information here might be outdated.  Recommended version.


ICoverageAnnotationLayerFactory.CreateAnnotationLayer Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

ICoverageAnnotationLayerFactory.CreateAnnotationLayer Method

Create an annotation class (on disk), and returns a layer for it.

[Visual Basic .NET]
Public Function CreateAnnotationLayer ( _
    ByVal pAnnotationWorkspace As IFeatureWorkspace, _
    ByVal pFeatureDataset As IFeatureDataset, _
    ByVal annotationLayerName As String _
) As ILayer
[C#]
public ILayer CreateAnnotationLayer (
    IFeatureWorkspace pAnnotationWorkspace,
    IFeatureDataset pFeatureDataset,
    string annotationLayerName
);
[C++]
HRESULT CreateAnnotationLayer(
  IFeatureWorkspace* pAnnotationWorkspace,
  IFeatureDataset* pFeatureDataset,
  BSTR annotationLayerName,
  ILayer** ppLayer
);
[C++]

Parameters pAnnotationWorkspace [in]
pAnnotationWorkspace is a parameter of type IFeatureWorkspace pFeatureDataset [in]
pFeatureDataset is a parameter of type IFeatureDataset annotationLayerName [in] annotationLayerName is a parameter of type BSTR ppLayer [out, retval]
ppLayer is a parameter of type ILayer

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ICoverageAnnotationLayerFactory Interface