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


IAnnotationLayerFactory.OpenAnnotationLayer Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IAnnotationLayerFactory.OpenAnnotationLayer Method

Opens an annotation feature class and returns a layer for it.

[Visual Basic .NET]
Public Function OpenAnnotationLayer ( _
    ByVal Workspace As IFeatureWorkspace, _
    ByVal FeatureDataset As IFeatureDataset, _
    ByVal annotationClassName As String _
) As IAnnotationLayer
[C#]
public IAnnotationLayer OpenAnnotationLayer (
    IFeatureWorkspace Workspace,
    IFeatureDataset FeatureDataset,
    string annotationClassName
);
[C++]
HRESULT OpenAnnotationLayer(
  IFeatureWorkspace* Workspace,
  IFeatureDataset* FeatureDataset,
  BSTR annotationClassName,
  IAnnotationLayer** Layer
);
[C++]

Parameters Workspace [in]
Workspace is a parameter of type IFeatureWorkspace FeatureDataset [in]
FeatureDataset is a parameter of type IFeatureDataset annotationClassName [in] annotationClassName is a parameter of type BSTR Layer [out, retval]
Layer is a parameter of type IAnnotationLayer

Product Availability

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

See Also

IAnnotationLayerFactory Interface