共用方式為


NetworkSecurityGroupOperationsExtensions.GetForRole Method

Definition

Gets the Network Security Group applied to a specific role.

public static Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse GetForRole (this Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations operations, string serviceName, string deploymentName, string roleName);
static member GetForRole : Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations * string * string * string -> Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse
<Extension()>
Public Function GetForRole (operations As INetworkSecurityGroupOperations, serviceName As String, deploymentName As String, roleName As String) As NetworkSecurityGroupGetAssociationResponse

Parameters

operations
INetworkSecurityGroupOperations

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

serviceName
String

Required.

deploymentName
String

Required.

roleName
String

Required.

Returns

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

Applies to