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 |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| ArgumentException | Value of |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.6 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.6 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.6 - 100.15 |
| Xamarin.iOS | 100.6 - 100.15 |
| UWP | 100.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.