HciVmExtensions.GetHciVmNetworkInterfaces 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
| Name | Description |
|---|---|
| GetHciVmNetworkInterfaces(ResourceGroupResource) |
Gets a collection of HciVmNetworkInterfaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetHciVmNetworkInterfaces() instead. </item> |
| GetHciVmNetworkInterfaces(SubscriptionResource, CancellationToken) |
Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces. <item> Mocking. To mock this method, please mock GetHciVmNetworkInterfaces(CancellationToken) instead. </item> |
GetHciVmNetworkInterfaces(ResourceGroupResource)
- Source:
- HciVmExtensions.cs
Gets a collection of HciVmNetworkInterfaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetHciVmNetworkInterfaces() instead. </item>
public static Azure.ResourceManager.Hci.Vm.HciVmNetworkInterfaceCollection GetHciVmNetworkInterfaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHciVmNetworkInterfaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.Vm.HciVmNetworkInterfaceCollection
<Extension()>
Public Function GetHciVmNetworkInterfaces (resourceGroupResource As ResourceGroupResource) As HciVmNetworkInterfaceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
Returns
An object representing collection of HciVmNetworkInterfaces and their operations over a HciVmNetworkInterfaceResource.
Exceptions
resourceGroupResource is null.
Applies to
GetHciVmNetworkInterfaces(SubscriptionResource, CancellationToken)
- Source:
- HciVmExtensions.cs
Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces. <item> Mocking. To mock this method, please mock GetHciVmNetworkInterfaces(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmNetworkInterfaceResource> GetHciVmNetworkInterfaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHciVmNetworkInterfaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmNetworkInterfaceResource>
<Extension()>
Public Function GetHciVmNetworkInterfaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HciVmNetworkInterfaceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HciVmNetworkInterfaceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.