This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IAnnotationLayerFactory Interface > IAnnotationLayerFactory.OpenAnnotationLayer Method (ArcObjects .NET 10.5 SDK) |
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