Share via


NetworkSecurityGroupOperationsExtensions.GetForSubnet 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 NetworkSecurityGroupGetForSubnetResponse GetForSubnet(
    this INetworkSecurityGroupOperations operations,
    string virtualNetworkName,
    string subnetName
)
public:
[ExtensionAttribute]
static NetworkSecurityGroupGetForSubnetResponse^ GetForSubnet(
    INetworkSecurityGroupOperations^ operations,
    String^ virtualNetworkName,
    String^ subnetName
)
static member GetForSubnet : 
        operations:INetworkSecurityGroupOperations *
        virtualNetworkName:string *
        subnetName:string -> NetworkSecurityGroupGetForSubnetResponse
<ExtensionAttribute>
Public Shared Function GetForSubnet (
    operations As INetworkSecurityGroupOperations,
    virtualNetworkName As String,
    subnetName As String
) As NetworkSecurityGroupGetForSubnetResponse

Parameters

Return Value

Type: Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetForSubnetResponse

The Network Security Group associated with a subnet.

See Also

NetworkSecurityGroupOperationsExtensions Class
Microsoft.WindowsAzure.Management.Network Namespace

Return to top