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


IRepresentationWorkspaceExtension.OpenRepresentationClass Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRepresentationWorkspaceExtension.OpenRepresentationClass Method

Opens a representation class.

[Visual Basic .NET]
Public Function OpenRepresentationClass ( _
    ByVal Name As String _
) As IRepresentationClass
[C#]
public IRepresentationClass OpenRepresentationClass (
    string Name
);
[C++]
HRESULT OpenRepresentationClass(
  BSTR Name,
  IRepresentationClass** repClass
);
[C++]

Parameters Name [in] Name is a parameter of type BSTR repClass [out, retval]
repClass is a parameter of type IRepresentationClass

Product Availability

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

Remarks

OpenRepresentationClass method can be used to open any existing feature class representation within a workspace given its name as a string. Use this method in conjuction with RepresentationClassNames property to open all representation classes defined within the workspace or with FeatureClassRepresentationNames property to get access to all representation classes  corresponding to a single feature class within the workspace.

It is not necessary to provide fully qualified names as string arguments for opening SDE feature class representations.

See Also

IRepresentationWorkspaceExtension Interface