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


RepresentationClass Class (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

RepresentationClass Class

A Feature Class Representation object.

RepresentationClass is a non-creatable object. References to non-creatable objects must be obtained through other objects.

Product Availability

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

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IDataset Provides access to members that supply dataset information.
IDatasetComponent Provides access to the common functionality found on all dataset components.
IRepresentationClass Provides access to members that control the behavior and properties of a feature class representation.
ISchemaLock Provides access to members for accessing schema locking functionality.
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.

Remarks

RepresentationClass is a feature class that has been enabled with representation capability. Creating a new feature class representation will result in addition of two new fields correspoding to the RuleID which is of type long and Override which is of type binary larger object (blob). RuleID field has information about the RepresentationRule used to represent feature representations. Override field contains information about attribute and shape overrides present for representations. By default, the values in override field are null.

A representation class cannot exist on its own and needs to be created using a feature class. Representation classes will have same number of representations as there are features in the feature class. Deleting a feature class will result in the deletion of all representation classes associated with it. When new features are added to a feature class which already has a representation class, it is the responsibility of the user to update the RuleID value to correctly represent those new representations and add override information if necessary. 

Use IRepresentationWorkspaceExtension.CreateRepresentationClass method to create new representation classes. Alternately, Drop Representation geoprocessing tool can be used to remove specific feature class representations.

A new RepresentationRules object has to be created or a reference to an existing representation rules has to be present prior to creation of a representation class. Representation rules are rules based on which feature representations are represented. A complex symbol can be created as a representation rule by combining one or more of basic symbols, geometric effects and marker placement styles.