Interface INetworkDataset
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that query the schema of the network dataset.
[Guid("5299F003-FCA2-453D-AB8E-28B9AC6648B5")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface INetworkDataset
Remarks
A NetworkDataset is a collection of feature classes that participate in a network relationship. Each feature class has a topological role in the network and a network may have multiple feature classes in the same role. A feature dataset may have multiple networks but a feature class can only belong to one network, either a network dataset or geometric network. A Feature class in the network dataset is called a network source. Network datasets may also have attributes which are used for solving against a network dataset. Network dataset sources can also participate within an ITopology
The IDatasetContainer2 interface should be used for creating and opening network datasets. The INetworkBuild interface should be used for adding or removing sources or attributes from a network dataset and for building a network dataset.
Properties
Attribute[int]
Network dataset attribute by index.
INetworkAttribute Attribute[int Index] { get; }
Parameters
Indexint
Property Value
Remarks
Returns the attribute at the specified index. The indexes go from 0 to AttributeCount -1.
AttributeByID[int]
Network dataset attribute corresponding to the specified ID.
INetworkAttribute AttributeByID[int ID] { get; }
Parameters
IDint
Property Value
AttributeByName[string]
Network dataset attribute corresponding to the specified name.
INetworkAttribute AttributeByName[string Name] { get; }
Parameters
Namestring
Property Value
Remarks
The AttributeByName property will return a reference to the attribute with the specified name. Attribute names are not case sensitive.
AttributeCount
Number of attributes in the network dataset.
int AttributeCount { get; }
Property Value
Remarks
Returns the number of attributes assigned to the network dataset.
Buildable
Indicates if this network dataset is buildable.
bool Buildable { get; }
Property Value
Remarks
Returns a boolean value indicating if the network dataset can be built using the INetworkBuild:BuildNetwork method. This method will return true for Geodatabase and Shapefile network datasets. Use the INetworkDataset:NetworkType property to determine the type of network dataset.
DirtyArea[IPolygon]
The dirty area polygon of the network dataset.
IPolygon DirtyArea[IPolygon Location] { get; }
Parameters
LocationIPolygon
Property Value
NetworkType
The type of the network dataset.
esriNetworkDatasetType NetworkType { get; }
Property Value
Remarks
Returns the type of network dataset; geodatabase, shapefile, SDC or unknown. Use this property to handle properties that differ based on the type of network dataset.
SDC networks are no longer supported so you should never see that value.
Source[int]
Network dataset source by index.
INetworkSource Source[int Index] { get; }
Parameters
Indexint
Property Value
Remarks
Returns the source at the specified index. The indexes go from 0 to SourceCount -1.
SourceByID[int]
Network dataset source corresponding to the specified ID.
INetworkSource SourceByID[int ID] { get; }
Parameters
IDint
Property Value
Remarks
Returns the source with the specified ID. The ID is not equal to the index. Rather it is the internal ID of the source as stored in the metadata tables. It can be retrieved from the INetworkSource::ID property.
SourceByName[string]
Network dataset source corresponding to the specified name.
INetworkSource SourceByName[string Name] { get; }
Parameters
Namestring
Property Value
Remarks
The SourceByName property will return a reference to the source with the specified name. Source names are not case sensitive. For ArcSDE Geodatabases, both the fully qualified name and unqualified name can be used to return topologies.
SourceCount
Number of sources in the network dataset.
int SourceCount { get; }
Property Value
Remarks
Returns the number of sources in the network dataset.
State
Indicates whether the network dataset is built or not.
esriNetworkDatasetState State { get; }
Property Value
Remarks
The State property indicates the current status of the network dataset; whether the network dataset is unbuilt, built or empty. Network analysis may be performed on unbuilt network datasets, but the results cannot be guaranteed to be correct and will depend on the edits that have been made.
SupportsTurns
Indicates if this network dataset supports network turn elements.
bool SupportsTurns { get; }