Provides access to members that describe utility network source.
Members
Name | Description | |
---|---|---|
AssetGroupCodes | Returns asset group codes. | |
AssetGroups | Returns asset groups. | |
AssetTypeFieldName | Returns asset type field name. | |
AssetTypes | Returns asset types. | |
ElementType | Network element type of this network source. | |
GeometryType | The enumerated geometry type. | |
ID | Unique identifier of this network source. | |
LayerID | Returns layer ID. | |
Name | Name of the class associated with this network source. | |
NetworkSourceDirections | The directions settings for this network source. | |
Properties | Property set of this network source. | |
SchemaGeneration | Returns the schema generation. | |
SourceType | Type of network source. | |
SupportedProperties | Returns supported properties. | |
SupportedProperty | Returns whether the property is supported. | |
UsesGeometryInConnectivity | Indicates if the source object's geometry is used in determining network connectivity. | |
UtilityNetworkFeatureClassUsageType | Returns utility network feature class usage type. |
IUtilityNetworkSource.AssetGroupCodes Property
Returns asset group codes.
Public ReadOnly Property AssetGroupCodes As ILongArray
public ILongArray AssetGroupCodes {get;}
IUtilityNetworkSource.AssetGroups Property
Returns asset groups.
Public ReadOnly Property AssetGroups As IArray
public IArray AssetGroups {get;}
Description
An array to hold an indexed collection of IAssetGroup.
IUtilityNetworkSource.AssetTypeFieldName Property
Returns asset type field name.
Public ReadOnly Property AssetTypeFieldName As String
public string AssetTypeFieldName {get;}
IUtilityNetworkSource.AssetTypes Property
Returns asset types.
Public Function get_AssetTypes ( _
ByVal AssetGroupCode As Integer _
) As IArray
public IArray get_AssetTypes (
int AssetGroupCode
);
Description
An array to hold an indexed collection of IAssetType.
IUtilityNetworkSource.LayerID Property
Returns layer ID.
Public ReadOnly Property LayerID As Integer
public int LayerID {get;}
Remarks
For internal use only. This property will always return -1 when called from the Enterprise SDK. The network source name (INetworkSource::Name) should instead be used to retrieve the layer ID.
IUtilityNetworkSource.SchemaGeneration Property
Returns the schema generation.
Public Property SchemaGeneration As Integer
public int SchemaGeneration {get; set;}
IUtilityNetworkSource.SupportedProperties Property
Returns supported properties.
Public ReadOnly Property SupportedProperties As Integer
public int SupportedProperties {get;}
IUtilityNetworkSource.SupportedProperty Property
Returns whether the property is supported.
Public Function get_SupportedProperty ( _
ByVal Property As esriNetworkSourceSupportedProperty _
) As Boolean
public bool get_SupportedProperty (
esriNetworkSourceSupportedProperty Property
);
IUtilityNetworkSource.UtilityNetworkFeatureClassUsageType Property
Returns utility network feature class usage type.
Public ReadOnly Property UtilityNetworkFeatureClassUsageType As esriUtilityNetworkFeatureClassUsageType
public esriUtilityNetworkFeatureClassUsageType UtilityNetworkFeatureClassUsageType {get;}
// This method returns the NetworkSourceID of the UN feature class usage type
public int? GetNetworkSourceIdByFeatureClassUsageType(IDEUtilityNetwork deUtilityNetwork, string domainNetworkName, esriUtilityNetworkFeatureClassUsageType usageType)
{
IArray domainNetworks = deUtilityNetwork.DomainNetworks as IArray;
for (int i = 0; i < domainNetworks.Count; i++)
{
IDomainNetwork domainNetwork = domainNetworks.Element[i] as IDomainNetwork;
if (domainNetwork != null && domainNetwork.DomainNetworkName == domainNetworkName)
{
IArray networkSources = domainNetwork.Sources;
for (int j = 0; j < networkSources.Count; j++)
{
INetworkSource networkSource = networkSources.Element[j] as INetworkSource;
if (networkSource != null)
{
int networkSourceID = networkSource.ID;
IUtilityNetworkSource utilityNetworkSource = (IUtilityNetworkSource)networkSource;
if (utilityNetworkSource != null)
{
if (utilityNetworkSource.UtilityNetworkFeatureClassUsageType == usageType)
{
return networkSourceID;
}
}
}
}
}
}
return null;
}
Inherited Interfaces
Interfaces | Description |
---|---|
INetworkSource | Provides access to members that specify the properties of a source in a network dataset. |
Classes that implement IUtilityNetworkSource
Classes | Description |
---|