Class RelationshipClassClass

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll
[Guid("AF10D71D-A61B-11D4-A64C-0008C711C8C1")]
[ClassInterface(ClassInterfaceType.None)]
public class RelationshipClassClass : RelationshipClass, IDataset, IRelationshipClass2, IRelationshipClass, IRelClassSchemaEdit
Inheritance
RelationshipClassClass
Implements
Inherited Members

Explicit Interface Implementations

AddRelationshipRule(IRule)

Adds a relationship rule to this relationship class.

virtual void AddRelationshipRule(IRule Rule)

Parameters

Rule IRule

Remarks

The AddRelationshipRule method adds a new relationship rule to the relationship class. Relationship classes can have an associated set of relationship rules. These rules are used to control which object subtypes from the origin class can be related to which object subtypes in the destination class. They can also be used to specify a valid cardinality range for all permissable subtype pairs. For example, in a feature class containing utility poles divided into wooden and steel subtypes, relationship rules could be used to specify that wooden poles may have one to three transformers attached, but steel poles may have one to five transformers attached.

[C#]

Below is a small C# code sample of how to add a relationship rule:

IFeatureClass originFeatureClass = featureWorkspace.OpenFeatureClass("us_counties");
IFeatureClass destFeatureClass = featureWorkspace.OpenFeatureClass("poles");
IRelationshipClass relationshipClass = featureWorkspace.OpenRelationshipClass("transformers");IRelationshipRule relationshipRule = (IRelationshipRule) new RelationshipRuleClass();
relationshipRule.DestinationClassID = destFeatureClass.ObjectClassID;
relationshipRule.DestinationSubtypeCode = 0;    
relationshipRule.DestinationMaximumCardinality = 1;
relationshipRule.DestinationMinimumCardinality = 5;
relationshipRule.OriginClassID = originFeatureClass.ObjectClassID;
relationshipRule.OriginSubtypeCode = 0;
relationshipRule.OriginMaximumCardinality = 1;
relationshipRule.OriginMinimumCardinality = 1;relationshipClass.AddRelationshipRule(relationshipRule);

AlterBackwardPathLabel(string)

Changes the backward path label for this relationship class.

virtual void AlterBackwardPathLabel(string BackwardLabel)

Parameters

BackwardLabel string

AlterForwardPathLabel(string)

Changes the forward path label for this relationship class.

virtual void AlterForwardPathLabel(string ForwardLabel)

Parameters

ForwardLabel string

AlterIsComposite(bool)

Changes the type of this relationship class.

virtual void AlterIsComposite(bool IsComposite)

Parameters

IsComposite bool

BackwardPathLabel

The backward path label for the relationship class.

virtual string BackwardPathLabel { get; }

Returns

string

Remarks

The BackwardPathLabel property returns the path label for the backward direction path.  An example can be shown by using a relationship between a pump station and its pumps.  A backward path label may be something like "Contained by".  It would be read as a pump is 'Contained by' the pump station.

BrowseName

The browse name of the dataset.

virtual string BrowseName { get; set; }

Returns

string

Remarks

BrowseName returns file names without their extension. For example, States.shp would appear as States.

CanCopy()

True if this dataset can be copied.

virtual bool CanCopy()

Returns

bool

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

The CanCopy method is supported by:

  • CAD Drawings
  • Coverages
  • DBase Tables
  • Info Tables
  • Raster Datasets
  • SDC datasets
  • SDC Network Datasets
  • Shapefiles
  • Shapefile Network Datasets

CanDelete()

True if this dataset can be deleted.

virtual bool CanDelete()

Returns

bool

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

CanRename()

True if this dataset can be renamed.

virtual bool CanRename()

Returns

bool

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete or rename a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

Cardinality

The cardinality for the relationship class.

virtual esriRelCardinality Cardinality { get; }

Returns

esriRelCardinality

Remarks

The Cardinality property returns the cardinality of the relationship class as an esriRelCardinality enumeration value.  It refers to the type of relationship formed between an origin class and a destination class.  It can be one of three types: esriRelCardinalityOneToOne (1-1), esriRelCardinalityOneToMany (1-M), or esriRelCardinalityManyToMany (M-N).

Category

The category of the dataset.

virtual string Category { get; }

Returns

string

Remarks

IDataset::Category returns a description of the category of the dataset.  The description returned from the Category property is the same value that is displayed in the Type column within the Contents tab in ArcCatalog.  The value will contain a description of the dataset such as "Topology" prefixed with a description of the type of workspace containing the dataset such as "File Geodatabase".

The description returned from IDataset::Category may change between releases of ArcGIS. In addition to this, returned strings are localized, meaning that code relying on a specific string being provided may fail when deployed with a different version of ArcGIS than it was developed with, or when deployed to a client using a different language than it was developed with.

Copy(string, IWorkspace)

Copies this dataset to a new dataset with the specified name.

virtual IDataset Copy(string copyName, IWorkspace copyWorkspace)

Parameters

copyName string
copyWorkspace IWorkspace

Returns

IDataset

Remarks

IDataset::Copy should only be used with datasets from file-based data sources, such as shapefiles and coverages.

CreateRelationship(IObject, IObject)

Creates a new relationship between the two specified objects.

virtual IRelationship CreateRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

Returns

IRelationship

Remarks

The CreateRelationship method creates a relationship between the origin object and the destination object specified in the parameters.  By default, when a relationship class is created, a relationship is created between the objects with corresponding primary and foreign key values.  When subsequently using CreateRelationship, remember that this operation will write a value into the foreign key field.  Therefore, in the case of 1:1 and 1:M relationship classes, it is possible that you could overwrite, and therefore delete, an existing relationship.

This method should be called within an edit session.

Delete()

Deletes this dataset.

virtual void Delete()

Remarks

Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.

DeleteRelationship(IObject, IObject)

Deletes the relationship that associates the two specified objects.

virtual void DeleteRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

Remarks

The DeleteRelationship method deletes the relationship between the origin object and destination object specified in the parameters.  This will remove the entry for this relationship from the relationship class.

This method should be called within an edit session.

DeleteRelationshipRule(IRule)

Deletes a relationship rule from this relationship class.

virtual void DeleteRelationshipRule(IRule Rule)

Parameters

Rule IRule

Remarks

The DeleteRelationshipRule method deletes a relationship rule from the relationship class.  Relationship classes can have an associated set of relationship rules. These rules are used to control which object subtypes from the origin class can be related to which object subtypes in the destination class. They can also be used to specify a valid cardinality range for all permissable subtype pairs. For example, in a feature class containing utility poles divided into wooden and steel subtypes, relationship rules could be used to specify that wooden poles may have one to three transformers attached, but steel poles may have one to five transformers attached.

DeleteRelationshipsForObject(IObject)

Deletes all relationships that apply to a specified object.

virtual void DeleteRelationshipsForObject(IObject anObject)

Parameters

anObject IObject

Remarks

The DeleteRelationshipsForObject method is used for removing all of the relationships in the relationship class that the specified object belongs to.  Note that this method is bi-directional; the specified object could belong to the origin class or destination class.

This method should be called within an edit session.

DeleteRelationshipsForObjectSet(ISet)

Deletes all relationships that apply to the specified origin or destination object set.

virtual void DeleteRelationshipsForObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

Remarks

The DeleteRelationshipsForObjectSet method is used for removing all relationships in a particular relationship class for the specified set of objects.

This method works in the same way as the DeleteRelationshipsForObject method, except on a set of objects rather than a single one. If a cursor is used to populate the set with objects, ensure that a non-recycling cursor is used.

This method should be called within an edit session.

[C#]

    //e.g., nameOfRelClass = "relclass"
    //      nameOfOriginTable = "origintable"
    public void IRelationshipClass__DeleteRelationshipsForObjectSet(IWorkspace workspace, string nameOfRelClass, string nameOfOriginTable)
    {
        IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace;
        IRelationshipClass relationshipClass = featureWorkspace.OpenRelationshipClass(nameOfRelClass);
        ITable originTable = featureWorkspace.OpenTable(nameOfOriginTable);
        ESRI.ArcGIS.esriSystem.ISet objectSet = new ESRI.ArcGIS.esriSystem.SetClass();
        objectSet.Add(originTable.GetRow(1));
        objectSet.Add(originTable.GetRow(2));
        objectSet.Add(originTable.GetRow(3));
        objectSet.Reset();
        IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)workspace;
        workspaceEdit.StartEditing(true);
        workspaceEdit.StartEditOperation();
        relationshipClass.DeleteRelationshipsForObjectSet(objectSet);
        workspaceEdit.StopEditOperation();
        workspaceEdit.StopEditing(true);
        objectSet = null;
    }


















DestinationClass

The destination object class.

virtual IObjectClass DestinationClass { get; }

Returns

IObjectClass

DestinationForeignKey

The relationship destination foreign Key.

virtual string DestinationForeignKey { get; }

Returns

string

Remarks

The DestinationForeignKey property returns the name of the destination foreign key field.  This property is null except in the case of attributed relationship classes, in which case it is the name of a field in the relationship table. The values in this field reference values in the field designated as the destination primary key.

DestinationPrimaryKey

The relationship destination primary Key.

virtual string DestinationPrimaryKey { get; }

Returns

string

FeatureDataset

The feature dataset, if any, to which this relationship class belongs.

virtual IFeatureDataset FeatureDataset { get; }

Returns

IFeatureDataset

Remarks

The FeatureDataset property returns the feature dataset that this relationship class belongs to.  If the relationship class exists outside of a feature dataset, a null value will be returned.

ForwardPathLabel

The forward path label for the relationship class.

virtual string ForwardPathLabel { get; }

Returns

string

Remarks

The ForwardPathLabel property returns the path label for the forward direction path.  An example can be shown by using a relationship between a pump station and its pumps.  A forward path label may be something like "Contains".  It would be read as a pump station 'Contains' pumps.

FullName

The associated name object.

virtual IName FullName { get; }

Returns

IName

Remarks

The FullName property returns a Name object for the dataset. The Name object can be persisted and provides a way to get back to the dataset in a future session of the application, via the Open method on the Name object.

GetObjectsMatchingObjectArray(IArray, IQueryFilter, bool)

Gets rows pairs of objects that are related to the specified origin or destination object array, that also meet the query filter expression.

virtual IRelClassEnumRowPairs GetObjectsMatchingObjectArray(IArray srcObjectArray, IQueryFilter queryFilterAppliedToMatchingObjects, bool returnAllObjectMatches)

Parameters

srcObjectArray IArray
queryFilterAppliedToMatchingObjects IQueryFilter
returnAllObjectMatches bool

Returns

IRelClassEnumRowPairs

Remarks

The returnAllObjectMatches parameter indicates whether the first matching object or if all matching objects are returned. A value of True will return all object matches.

GetObjectsMatchingObjectSet(ISet)

Gets rows pairs of objects that are related to the specified origin or destination object set.

virtual IRelClassEnumRowPairs GetObjectsMatchingObjectSet(ISet srcObjectSet)

Parameters

srcObjectSet ISet

Returns

IRelClassEnumRowPairs

Remarks

The GetObjectsMatchingObjectSet method returns an enumerator of related object pairs based on the object set provided as a parameter. The enumerator contains a related object pair for each relationship participated in by the input objects. For example, in a relationship class with 1:1 cardinality, passing three objects into this method will return three related object pairs, assuming all three objects participate in a relationship. In a relationship class with 1:M or M:N cardinality, passing in a single object could conceivably result in an enumerator with multiple related object pairs, if the object participates in several relationships.

If the input set is constructed with a cursor, ensure that a non-recycling cursor is used.

GetObjectsMatchingObjectSetEx(ISet, IQueryFilter, bool)

Gets rows pairs of objects that are related to the specified origin or destination object set, that also meet the query filter expression.

virtual IRelClassEnumRowPairs GetObjectsMatchingObjectSetEx(ISet srcObjectSet, IQueryFilter queryFilterAppliedToMatchingObjects, bool returnAllObjectMatches)

Parameters

srcObjectSet ISet
queryFilterAppliedToMatchingObjects IQueryFilter
returnAllObjectMatches bool

Returns

IRelClassEnumRowPairs

Remarks

The returnAllObjectMatches parameter indicates whether the first matching object or if all matching objects are returned. A value of True will return all object matches.

GetObjectsRelatedToObject(IObject)

Gets the objects that are related to the specified object.

virtual ISet GetObjectsRelatedToObject(IObject anObject)

Parameters

anObject IObject

Returns

ISet

Remarks

The GetObjectsRelatedToObject method returns a set of Objects (or subtypes of Object, such as features) that are related to the anObject object.

GetObjectsRelatedToObjectSet(ISet)

Gets the objects that are related to the specified origin or destination object set.

virtual ISet GetObjectsRelatedToObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

Returns

ISet

Remarks

The GetObjectsRelatedToObjectSet  method returns a set of objects that are related to the objects contained by the anObjectSet parameter. It behaves the same as GetObjectsRelatedToObject, except that it accepts a set of objects as a parameter.

If multiple objects in the input set are related to a common object, that object will only be included once in the returned set.

If the input set is constructed with a cursor, ensure that a non-recycling cursor is used.

[C#]

    //e.g., nameOfRelClass = "relclass"
    //      nameOfOriginTable = "origintable"
    public void IRelationshipClass__GetObjectsRelatedToObjectSet(IWorkspace workspace, string nameOfRelClass, string nameOfOriginTable)
    {
        IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace;
        IRelationshipClass relationshipClass = featureWorkspace.OpenRelationshipClass(nameOfRelClass);
        ITable originTable = featureWorkspace.OpenTable(nameOfOriginTable);
        ESRI.ArcGIS.esriSystem.ISet objectSet = new ESRI.ArcGIS.esriSystem.SetClass();
        objectSet.Add(originTable.GetRow(1));
        objectSet.Add(originTable.GetRow(2));
        objectSet.Add(originTable.GetRow(3));
        objectSet.Reset();
        ESRI.ArcGIS.esriSystem.ISet resultSet = relationshipClass.GetObjectsRelatedToObjectSet(objectSet);
        objectSet = null;
    }













GetRelationship(IObject, IObject)

Get the relationship that associates the two specified objects.

virtual IRelationship GetRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

Returns

IRelationship

Remarks

When using a relationship class, the GetRelationship method is used for returning a relationship interface to the relationship between the origin object and destination object specified in the function parameters.  This can be used to retrieve the relationship between two objects.

GetRelationshipsForObject(IObject)

Get all relationships that apply to a specified object.

virtual IEnumRelationship GetRelationshipsForObject(IObject anObject)

Parameters

anObject IObject

Returns

IEnumRelationship

Remarks

The GetRelationshipsForObject method returns an IEnumRelationship enumerator containing the relationships that the anObject parameter participates in.

GetRelationshipsForObjectSet(ISet)

Get all relationships that apply to the specified origin or destination object set.

virtual IEnumRelationship GetRelationshipsForObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

Returns

IEnumRelationship

Remarks

The GetRelationshipsForObjectSet method returns an IEnumRelationship enumerator containing the relationships that the objects in anObjectSet parameter participate in.

If the input set is constructed with a cursor, ensure that a non-recycling cursor is used.

IRelationshipClass2_AddRelationshipRule(IRule)

virtual void IRelationshipClass2_AddRelationshipRule(IRule Rule)

Parameters

Rule IRule

IRelationshipClass2_BackwardPathLabel

virtual string IRelationshipClass2_BackwardPathLabel { get; }

Returns

string

IRelationshipClass2_Cardinality

virtual esriRelCardinality IRelationshipClass2_Cardinality { get; }

Returns

esriRelCardinality

IRelationshipClass2_CreateRelationship(IObject, IObject)

virtual IRelationship IRelationshipClass2_CreateRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

Returns

IRelationship

IRelationshipClass2_DeleteRelationship(IObject, IObject)

virtual void IRelationshipClass2_DeleteRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

IRelationshipClass2_DeleteRelationshipRule(IRule)

virtual void IRelationshipClass2_DeleteRelationshipRule(IRule Rule)

Parameters

Rule IRule

IRelationshipClass2_DeleteRelationshipsForObject(IObject)

virtual void IRelationshipClass2_DeleteRelationshipsForObject(IObject anObject)

Parameters

anObject IObject

IRelationshipClass2_DeleteRelationshipsForObjectSet(ISet)

virtual void IRelationshipClass2_DeleteRelationshipsForObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

IRelationshipClass2_DestinationClass

virtual IObjectClass IRelationshipClass2_DestinationClass { get; }

Returns

IObjectClass

IRelationshipClass2_DestinationForeignKey

virtual string IRelationshipClass2_DestinationForeignKey { get; }

Returns

string

IRelationshipClass2_DestinationPrimaryKey

virtual string IRelationshipClass2_DestinationPrimaryKey { get; }

Returns

string

IRelationshipClass2_FeatureDataset

virtual IFeatureDataset IRelationshipClass2_FeatureDataset { get; }

Returns

IFeatureDataset

IRelationshipClass2_ForwardPathLabel

virtual string IRelationshipClass2_ForwardPathLabel { get; }

Returns

string

IRelationshipClass2_GetObjectsMatchingObjectSet(ISet)

virtual IRelClassEnumRowPairs IRelationshipClass2_GetObjectsMatchingObjectSet(ISet srcObjectSet)

Parameters

srcObjectSet ISet

Returns

IRelClassEnumRowPairs

IRelationshipClass2_GetObjectsRelatedToObject(IObject)

virtual ISet IRelationshipClass2_GetObjectsRelatedToObject(IObject anObject)

Parameters

anObject IObject

Returns

ISet

IRelationshipClass2_GetObjectsRelatedToObjectSet(ISet)

virtual ISet IRelationshipClass2_GetObjectsRelatedToObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

Returns

ISet

IRelationshipClass2_GetRelationship(IObject, IObject)

virtual IRelationship IRelationshipClass2_GetRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

Returns

IRelationship

IRelationshipClass2_GetRelationshipsForObject(IObject)

virtual IEnumRelationship IRelationshipClass2_GetRelationshipsForObject(IObject anObject)

Parameters

anObject IObject

Returns

IEnumRelationship

IRelationshipClass2_GetRelationshipsForObjectSet(ISet)

virtual IEnumRelationship IRelationshipClass2_GetRelationshipsForObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

Returns

IEnumRelationship

IRelationshipClass2_IsAttributed

virtual bool IRelationshipClass2_IsAttributed { get; }

Returns

bool

IRelationshipClass2_IsComposite

virtual bool IRelationshipClass2_IsComposite { get; }

Returns

bool

IRelationshipClass2_Notification

virtual esriRelNotification IRelationshipClass2_Notification { get; }

Returns

esriRelNotification

IRelationshipClass2_OriginClass

virtual IObjectClass IRelationshipClass2_OriginClass { get; }

Returns

IObjectClass

IRelationshipClass2_OriginForeignKey

virtual string IRelationshipClass2_OriginForeignKey { get; }

Returns

string

IRelationshipClass2_OriginPrimaryKey

virtual string IRelationshipClass2_OriginPrimaryKey { get; }

Returns

string

IRelationshipClass2_RelationshipClassID

virtual int IRelationshipClass2_RelationshipClassID { get; }

Returns

int

IRelationshipClass2_RelationshipRules

virtual IEnumRule IRelationshipClass2_RelationshipRules { get; }

Returns

IEnumRule

IsAttributed

Indicates if the relationships in this relationship class have attributes.

virtual bool IsAttributed { get; }

Returns

bool

Remarks

The IsAttributed property indicates whether this relationship class is attributed or not.  An attributed relationship class has extra attributes that are being maintained for each relationship.  For example, in a relationship class between parcels and owners, percentage of ownership each particular owner has could be stored as a relationship attribute.

The IsAttributed property will only return true if there are extra relationship attributes beyond those required to relate the objects.  In the case of relationship classes with M:N cardinality, there will be a relationship table (see 'AttributedRelationshipClass' in the object model diagram), but IsAttributed will return False, unless there are additional attributes.

IsComposite

Indicates if the relationship class represents a composite relationship in which the origin object class represents the composite object.

virtual bool IsComposite { get; }

Returns

bool

Remarks

The IsComposite property indicates whether this relationship class is composite or simple. A composite relationship class is one where objects in the origin class control the lifetime of the objects in the destination class.  When the origin object is deleted, the related destination object is also deleted.   Composite relationship classes are always one to many relationships, but this can be constrained to one to one through the use of relationship rules.

If a relationship class is not composite, it is considered 'simple', and related objects are independent of each other. Simple relationships can be of any cardinality.

Name

The name of the Dataset.

virtual string Name { get; }

Returns

string

Notification

The notification direction for the relationship class.

virtual esriRelNotification Notification { get; }

Returns

esriRelNotification

Remarks

The Notification property returns the relationship class' notification behavior as as esriRelNotification enumeration value. A notification occurs when an event happens, such as a deletion or an edit. It can be one of four type: esriRelNotificationNone, esriRelNotificationForward, esriRelNotificationBackward, or esriRelNotificationBoth.  None means no notification will take place, forward means that notification will happen from the origin to the destination, backward means notification occurs from the destination to the origin, and both means notification will happen both ways when an event occurs.

OriginClass

The origin object class.

virtual IObjectClass OriginClass { get; }

Returns

IObjectClass

Remarks

When using a relationship class, the OriginClass property is used for returning an interface to the origin objectclass .

OriginForeignKey

The relationship origin foreign Key.

virtual string OriginForeignKey { get; }

Returns

string

OriginPrimaryKey

The relationship origin primary Key.

virtual string OriginPrimaryKey { get; }

Returns

string

PropertySet

The set of properties for the dataset.

virtual IPropertySet PropertySet { get; }

Returns

IPropertySet

Remarks

Examples of intrinsic properties for which explicit methods exist include the SpatialReference and the Extent methods available on the IGeoDataset interface. In most cases this PropertySet will be empty.

IDataset::PropertySet is not supported for Graph objects such as a Geometric Network.

RelationshipClassID

The relationship class ID.

virtual int RelationshipClassID { get; }

Returns

int

Remarks

The RelationshipClassID property returns the ID of the relationship class. This ID uniquely identifies a relationship class within its geodatabase relative to other relationship classes.  It is equivalent to IObjectClass::ObjectClassID except that it applies to relationship classes rather than object classes.

RelationshipRules

The relationship rules that apply to this relationship class.

virtual IEnumRule RelationshipRules { get; }

Returns

IEnumRule

Remarks

The RelationshipRules property retrieves the relationship rules of the relationship class as an IEnumRule enumerator.  These rules are used to control which object subtypes from the origin class can be related to which object subtypes in the destination class. They can also be used to specify a valid cardinality range for all permissable subtype pairs. For example, in a feature class containing utility poles divided into wooden and steel subtypes, relationship rules could be used to specify that wooden poles may have one to three transformers attached, but steel poles may have one to five transformers attached.

Rename(string)

Renames this Dataset.

virtual void Rename(string Name)

Parameters

Name string

Remarks

IDataset::Rename does not support the renaming of Graph objects such as a Geometric Network.  In addition, certain feature classes, such as network feature classes, cannot be renamed.

Subsets

Datasets contained within this dataset.

virtual IEnumDataset Subsets { get; }

Returns

IEnumDataset

Remarks

IDataset::Subsets is not supported for Graph objects such as a Geometric Network.  To return the feature classes contained in a Geometric Network, use the IFeatureClassContainer interface.

Type

The type of the Dataset.

virtual esriDatasetType Type { get; }

Returns

esriDatasetType

Remarks

The Type property returns the an esriDatasetType value indicating the dataset type, such as esriDTTable or esriDTFeatureClass.

Workspace

The workspace containing this dataset.

virtual IWorkspace Workspace { get; }

Returns

IWorkspace

Remarks

<p>A Workspace is a container of spatial and non-spatial datasets such as feature classes, raster datasets, and tables. It provides methods to instantiate existing datasets and to create new datasets. Workspaces are classified into types specified by the <b><a href="esriWorkspaceType.htm">esriWorkspaceType</a></b> enumerator: FileSystemWorkspace, LocalDatabaseWorkspace, and RemoteDatabaseWorkspace. Shapefiles and ArcGIS for Desktop Advanced workspaces are examples of FileSystemWorkspace. A personal geodatabase stored in an Access or a File Geodatabase is an example of a LocalDatabaseWorkspace. A geodatabase stored in an RDBMS such as Oracle, DB2, SQL Server, or Informix and accessed via ArcSDE is an example of a RemoteDatabaseWorkspace.</p> <p>A Workspace hands out a <b><a href="WorkspaceName.htm">WorkspaceName</a> </b>object as the value of its FullName property. For example, the WorkspaceName for a workspace can be persisted in a map document. An application can call the <b>Open()</b> method on the workspace name after loading it from persistent storage to connect to and get an object reference to the workspace.</p>