ArcObjects Library Reference (Carto)  

ICoverageAnnotationLayerFactory.OpenAnnotationLayer Method

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

[Visual Basic .NET]
Public Function OpenAnnotationLayer ( _
    ByVal pAnnotationWorkspace As IFeatureWorkspace, _
    ByVal pFeatureDataset As IFeatureDataset, _
    ByVal annotationLayerName As String _
) As ILayer
[C#]
public ILayer OpenAnnotationLayer (
    IFeatureWorkspace pAnnotationWorkspace,
    IFeatureDataset pFeatureDataset,
    string annotationLayerName
);
[C++]
HRESULT OpenAnnotationLayer(
  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