ArcGIS Pro 2.8 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.
This method or property must be called within the lambda passed to QueuedTask.Run
Remarks
The string comparison used to find the name is case-insensitive.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

UtilityNetworkDefinition Class
UtilityNetworkDefinition Members