NetworkExtensions.GetNetworkInterface 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 |
|---|---|
| GetNetworkInterface(ResourceGroupResource, String, String, CancellationToken) |
Gets information about the specified network interface. <item> Mocking. To mock this method, please mock GetNetworkInterface(String, String, CancellationToken) instead. </item> |
| GetNetworkInterface(ResourceGroupResource, String, String, String, String, CancellationToken) |
Get the specified network interface in a cloud service. <item> Mocking. To mock this method, please mock GetNetworkInterface(String, String, String, String, CancellationToken) instead. </item> |
GetNetworkInterface(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 GetNetworkInterface(String, String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource> GetNetworkInterface(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string networkInterfaceName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkInterface : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource>
<Extension()>
Public Function GetNetworkInterface (resourceGroupResource As ResourceGroupResource, networkInterfaceName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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
GetNetworkInterface(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 GetNetworkInterface(String, String, String, String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource> GetNetworkInterface(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, string roleInstanceName, string networkInterfaceName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkInterface : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.NetworkInterfaceResource>
<Extension()>
Public Function GetNetworkInterface (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, roleInstanceName As String, networkInterfaceName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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.