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

ICoverageAnnotationLayerFactory.OpenAnnotationLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IC > ICoverageAnnotationLayerFactory Interface > ICoverageAnnotationLayerFactory.OpenAnnotationLayer Method
ArcGIS Developer Help

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
public ILayer OpenAnnotationLayer (
    IFeatureWorkspace pAnnotationWorkspace,
    IFeatureDataset pFeatureDataset,
    string annotationLayerName
HRESULT OpenAnnotationLayer(
  IFeatureWorkspace* pAnnotationWorkspace,
  IFeatureDataset* pFeatureDataset,
  BSTR annotationLayerName
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

Product Availability

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

See Also

ICoverageAnnotationLayerFactory Interface