NetworkExtensions.GetNetworkInterfaces Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetNetworkInterfaces(ResourceGroupResource) |
Gets a collection of NetworkInterfaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkInterfaces() instead. |
GetNetworkInterfaces(SubscriptionResource, CancellationToken) |
Gets all network interfaces in a subscription.
|
GetNetworkInterfaces(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of NetworkInterfaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkInterfaces() instead.
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 instance the method will execute against.
Returns
An object representing collection of NetworkInterfaceResources 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.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces
- Operation Id: NetworkInterfaces_ListAll
- Default Api Version: 2024-03-01
- Resource: NetworkInterfaceResource
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 instance 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
Azure SDK for .NET