NetworkSecurityGroupOperationsExtensions.SetRule 方法 (INetworkSecurityGroupOperations, String, String, NetworkSecuritySetRuleParameters)

 

将新的网络安全规则添加到现有的网络安全组。

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

语法

public static OperationStatusResponse SetRule(
    this INetworkSecurityGroupOperations operations,
    string networkSecurityGroupName,
    string ruleName,
    NetworkSecuritySetRuleParameters parameters
)
public:
[ExtensionAttribute]
static OperationStatusResponse^ SetRule(
    INetworkSecurityGroupOperations^ operations,
    String^ networkSecurityGroupName,
    String^ ruleName,
    NetworkSecuritySetRuleParameters^ parameters
)
static member SetRule : 
        operations:INetworkSecurityGroupOperations *
        networkSecurityGroupName:string *
        ruleName:string *
        parameters:NetworkSecuritySetRuleParameters -> OperationStatusResponse
<ExtensionAttribute>
Public Shared Function SetRule (
    operations As INetworkSecurityGroupOperations,
    networkSecurityGroupName As String,
    ruleName As String,
    parameters As NetworkSecuritySetRuleParameters
) As OperationStatusResponse

参数

返回值

Type: Microsoft.Azure.OperationStatusResponse

响应正文包含指定的异步操作,指示它是已成功、 正在进行,还是已失败的状态。 请注意此状态为获取操作状态操作本身返回的 HTTP 状态代码不同。 如果异步操作成功,则响应正文包含成功请求的 HTTP 状态代码。 如果异步操作失败,则响应正文包含失败请求的 HTTP 状态代码,还包含关于失败的错误信息。

请参阅

NetworkSecurityGroupOperationsExtensions 类
Microsoft.WindowsAzure.Management.Network 命名空间

返回页首