INetworkSecurityGroupOperations.GetForSubnetAsync 方法 (String, String, CancellationToken)

 

获取应用于特定的子网的网络安全组。

命名空间:   Microsoft.WindowsAzure.Management.Network
程序集:  Microsoft.WindowsAzure.Management.Network(Microsoft.WindowsAzure.Management.Network.dll 中)

语法

Task<NetworkSecurityGroupGetForSubnetResponse> GetForSubnetAsync(
    string virtualNetworkName,
    string subnetName,
    CancellationToken cancellationToken
)
Task<NetworkSecurityGroupGetForSubnetResponse^>^ GetForSubnetAsync(
    String^ virtualNetworkName,
    String^ subnetName,
    CancellationToken cancellationToken
)
abstract GetForSubnetAsync : 
        virtualNetworkName:string *
        subnetName:string *
        cancellationToken:CancellationToken -> Task<NetworkSecurityGroupGetForSubnetResponse>
Function GetForSubnetAsync (
    virtualNetworkName As String,
    subnetName As String,
    cancellationToken As CancellationToken
) As Task(Of NetworkSecurityGroupGetForSubnetResponse)

参数

返回值

Type: System.Threading.Tasks.Task<NetworkSecurityGroupGetForSubnetResponse>

与子网关联的网络安全组。

请参阅

INetworkSecurityGroupOperations 接口
Microsoft.WindowsAzure.Management.Network 命名空间

返回页首