This document is archived and information here might be outdated. Recommended version. |
Provides access to members that create, add and hand out relationship classes.
The IRelationshipClassContainer interface lets you create a relationship class within a feature dataset rather than a workspace.
The IRelationshipClassContainer interface lets you create a relationship class within a feature dataset rather than a workspace. The AddRelationshipClass method is effectively superseded by IDatasetContainer::AddDataset.
Name | Description | |
---|---|---|
AddRelationshipClass | Transfers ownership of a relationship class to this container. | |
CreateRelationshipClass | Creates a new relationship class in this container. | |
RelationshipClasses | An enumerator over the RelationshipClasses in this container. |
Classes | Description |
---|---|
FeatureDataset | Esri Feature Dataset object. |
The AddRelationshipClass method is effectively superseded by IDatasetContainer::AddDataset. The IDatasetContainer interface lets you move datasets between feature datasets and workspaces�both objects implement the interface.
public void MoveDataset(IFeatureDataset featureDataset, IDataset dataset, Boolean requiredStandAlone)
{
//This function moves a dataset (for example, a feature class or relationship class)
//from a feature dataset to being standalone in a workspace, or vice versa.
IDatasetContainer datasetContainer;
if (requiredStandAlone)
{
datasetContainer = featureDataset.Workspace as IDatasetContainer;
}
else
{
datasetContainer = featureDataset as IDatasetContainer;
}
datasetContainer.AddDataset(dataset);
}