共用方式為


NetworkSecurityGroupOperationsExtensions.GetForSubnetAsync Method

Definition

Gets the Network Security Group applied to a specific subnet.

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

Parameters

operations
INetworkSecurityGroupOperations

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

virtualNetworkName
String

Required.

subnetName
String

Required.

Returns

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

Applies to