Share via


INetworkSecurityGroupOperations.GetForSubnetAsync Method (String, String, CancellationToken)

 

Gets the Network Security Group applied to a specific subnet.

Namespace:   Microsoft.WindowsAzure.Management.Network
Assembly:  Microsoft.WindowsAzure.Management.Network (in Microsoft.WindowsAzure.Management.Network.dll)

Syntax

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)

Parameters

Return Value

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

The Network Security Group associated with a subnet.

See Also

INetworkSecurityGroupOperations Interface
Microsoft.WindowsAzure.Management.Network Namespace

Return to top