Share via


NetworkSecurityGroupOperationsExtensions.GetForSubnetAsync Method (INetworkSecurityGroupOperations, String, String)

 

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

public static Task<NetworkSecurityGroupGetForSubnetResponse> GetForSubnetAsync(
    this INetworkSecurityGroupOperations operations,
    string virtualNetworkName,
    string subnetName
)
public:
[ExtensionAttribute]
static Task<NetworkSecurityGroupGetForSubnetResponse^>^ GetForSubnetAsync(
    INetworkSecurityGroupOperations^ operations,
    String^ virtualNetworkName,
    String^ subnetName
)
static member GetForSubnetAsync : 
        operations:INetworkSecurityGroupOperations *
        virtualNetworkName:string *
        subnetName:string -> Task<NetworkSecurityGroupGetForSubnetResponse>
<ExtensionAttribute>
Public Shared Function GetForSubnetAsync (
    operations As INetworkSecurityGroupOperations,
    virtualNetworkName As String,
    subnetName As String
) As Task(Of NetworkSecurityGroupGetForSubnetResponse)

Parameters

Return Value

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

The Network Security Group associated with a subnet.

See Also

NetworkSecurityGroupOperationsExtensions Class
Microsoft.WindowsAzure.Management.Network Namespace

Return to top