NetworkExtensions.GetNetworkInterfaces Method

Definition

Overloads

Name Description
GetNetworkInterfaces(ResourceGroupResource)

Gets a collection of NetworkInterfaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetNetworkInterfaces() instead. </item>

GetNetworkInterfaces(SubscriptionResource, CancellationToken)

Gets all network interfaces in a subscription. <item> Mocking. To mock this method, please mock GetNetworkInterfaces(CancellationToken) instead. </item>

GetNetworkInterfaces(ResourceGroupResource, String, String)

Gets a collection of NetworkInterfaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetNetworkInterfaces(String, String) instead. </item>

GetNetworkInterfaces(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets a collection of NetworkInterfaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetNetworkInterfaces() instead. </item>

public static Azure.ResourceManager.Network.NetworkInterfaceCollection GetNetworkInterfaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkInterfaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.NetworkInterfaceCollection
<Extension()>
Public Function GetNetworkInterfaces (resourceGroupResource As ResourceGroupResource) As NetworkInterfaceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

Returns

An object representing collection of NetworkInterfaces and their operations over a NetworkInterfaceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkInterfaces(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all network interfaces in a subscription. <item> Mocking. To mock this method, please mock GetNetworkInterfaces(CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.Network.NetworkInterfaceResource> GetNetworkInterfaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkInterfaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.NetworkInterfaceResource>
<Extension()>
Public Function GetNetworkInterfaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NetworkInterfaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of NetworkInterfaceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetNetworkInterfaces(ResourceGroupResource, String, String)

Source:
NetworkExtensions.cs

Gets a collection of NetworkInterfaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetNetworkInterfaces(String, String) instead. </item>

public static Azure.ResourceManager.Network.NetworkInterfaceCollection GetNetworkInterfaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, string roleInstanceName);
static member GetNetworkInterfaces : Azure.ResourceManager.Resources.ResourceGroupResource * string * string -> Azure.ResourceManager.Network.NetworkInterfaceCollection
<Extension()>
Public Function GetNetworkInterfaces (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, roleInstanceName As String) As NetworkInterfaceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

cloudServiceName
String

The cloudServiceName for the resource.

roleInstanceName
String

The roleInstanceName for the resource.

Returns

An object representing collection of NetworkInterfaces and their operations over a NetworkInterfaceResource.

Exceptions

resourceGroupResource is null.

Applies to