共用方式為


NetworkSecurityGroupOperationsExtensions.GetForNetworkInterfaceAsync Method

Definition

Gets the Network Security Group applied to a specific network interface.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse> GetForNetworkInterfaceAsync (this Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations operations, string serviceName, string deploymentName, string roleName, string networkInterfaceName);
static member GetForNetworkInterfaceAsync : Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations * string * string * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse>
<Extension()>
Public Function GetForNetworkInterfaceAsync (operations As INetworkSecurityGroupOperations, serviceName As String, deploymentName As String, roleName As String, networkInterfaceName As String) As Task(Of NetworkSecurityGroupGetAssociationResponse)

Parameters

operations
INetworkSecurityGroupOperations

Reference to the Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations.

serviceName
String

Required.

deploymentName
String

Required.

roleName
String

Required.

networkInterfaceName
String

Required.

Returns

The Network Security Group associated with an entity: subnet, network interface or role.

Applies to