NetworkExtensions.GetNetworkInterfaceAsync Method

Definition

Overloads

Name Description
GetNetworkInterfaceAsync(ResourceGroupResource, String, String, CancellationToken)

Gets information about the specified network interface. <item> Mocking. To mock this method, please mock GetNetworkInterfaceAsync(String, String, CancellationToken) instead. </item>

GetNetworkInterfaceAsync(ResourceGroupResource, String, String, String, String, CancellationToken)

Get the specified network interface in a cloud service. <item> Mocking. To mock this method, please mock GetNetworkInterfaceAsync(String, String, String, String, CancellationToken) instead. </item>

GetNetworkInterfaceAsync(ResourceGroupResource, String, String, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets information about the specified network interface. <item> Mocking. To mock this method, please mock GetNetworkInterfaceAsync(String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource>> GetNetworkInterfaceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkInterfaceName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkInterfaceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource>>
<Extension()>
Public Function GetNetworkInterfaceAsync (resourceGroupResource As ResourceGroupResource, networkInterfaceName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkInterfaceResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

networkInterfaceName
String

The name of the network interface.

expand
String

Expands referenced resources.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

networkInterfaceName is an empty string, and was expected to be non-empty.

resourceGroupResource is null.

Applies to

GetNetworkInterfaceAsync(ResourceGroupResource, String, String, String, String, CancellationToken)

Source:
NetworkExtensions.cs

Get the specified network interface in a cloud service. <item> Mocking. To mock this method, please mock GetNetworkInterfaceAsync(String, String, String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource>> GetNetworkInterfaceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, string roleInstanceName, string networkInterfaceName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkInterfaceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource>>
<Extension()>
Public Function GetNetworkInterfaceAsync (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, roleInstanceName As String, networkInterfaceName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkInterfaceResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

cloudServiceName
String

The cloudServiceName for the resource.

roleInstanceName
String

The roleInstanceName for the resource.

networkInterfaceName
String

The name of the network interface.

expand
String

Expands referenced resources.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to