Show / Hide Table of Contents

Method GetNetworkSource

GetNetworkSource(String)

Gets the UtilityNetworkSource associated with specified network source name.

Declaration
public UtilityNetworkSource GetNetworkSource(string networkSourceName)
Parameters
Type Name Description
System.String networkSourceName

Name of the network source.

Returns
Type Description
UtilityNetworkSource

UtilityNetworkSource associated with the specified network source name; or null if no match was found.

Exceptions
Type Condition
System.ArgumentNullException

networkSourceName is null.

ArgumentException

Value of networkSourceName is empty.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.6 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 100.15
Relevant samples
Configure subnetwork trace: Get a server-defined trace configuration for a given tier and modify its traversability scope, add new condition barriers and control what is included in the subnetwork trace result.
Perform valve isolation trace: Run a filtered trace to locate operable features that will isolate an area from the flow of network resources.
In This Article
Back to top Copyright © 2022 Esri.