ArcGIS Pro 2.6 API Reference Guide
GetNetworkAttribute Method

ArcGIS.Core.Data.UtilityNetwork Namespace > UtilityNetworkDefinition Class : GetNetworkAttribute Method
The name of the NetworkAttribute to return.
Gets a NetworkAttribute object with the specified name. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public NetworkAttribute GetNetworkAttribute( 
   string networkAttributeName
)
Public Function GetNetworkAttribute( _
   ByVal networkAttributeName As String _
) As NetworkAttribute

Parameters

networkAttributeName
The name of the NetworkAttribute to return.

Return Value

The NetworkAttribute that corresponds to networkAttributeName.
Exceptions
ExceptionDescription

networkAttributeName is null or an empty string.

-or-

There is no NetworkAttribute that corresponds to networkAttributeName.

A geodatabase-related exception has occurred.
Remarks
The string comparison used to find the name is case-insensitive.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

UtilityNetworkDefinition Class
UtilityNetworkDefinition Members