NetworkSecurityGroupOperationsExtensions.DeleteRuleAsync 方法 (INetworkSecurityGroupOperations, String, String)
删除网络安全规则操作从指定的网络安全组中删除一条规则。
命名空间: Microsoft.WindowsAzure.Management.Network
程序集: Microsoft.WindowsAzure.Management.Network(Microsoft.WindowsAzure.Management.Network.dll 中)
语法
public static Task<OperationStatusResponse> DeleteRuleAsync(
this INetworkSecurityGroupOperations operations,
string networkSecurityGroupName,
string ruleName
)
public:
[ExtensionAttribute]
static Task<OperationStatusResponse^>^ DeleteRuleAsync(
INetworkSecurityGroupOperations^ operations,
String^ networkSecurityGroupName,
String^ ruleName
)
static member DeleteRuleAsync :
operations:INetworkSecurityGroupOperations *
networkSecurityGroupName:string *
ruleName:string -> Task<OperationStatusResponse>
<ExtensionAttribute>
Public Shared Function DeleteRuleAsync (
operations As INetworkSecurityGroupOperations,
networkSecurityGroupName As String,
ruleName As String
) As Task(Of OperationStatusResponse)
参数
operations
Type: Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations对 Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations 引用。
networkSecurityGroupName
Type: System.String必需。 网络安全组的名称。
ruleName
Type: System.String必需。 要删除的规则的名称。
返回值
Type: System.Threading.Tasks.Task<OperationStatusResponse>
响应正文包含指定的异步操作,指示它是已成功、 正在进行,还是已失败的状态。 请注意此状态为获取操作状态操作本身返回的 HTTP 状态代码不同。 如果异步操作成功,则响应正文包含成功请求的 HTTP 状态代码。 如果异步操作失败,则响应正文包含失败请求的 HTTP 状态代码,还包含关于失败的错误信息。
请参阅
NetworkSecurityGroupOperationsExtensions 类
Microsoft.WindowsAzure.Management.Network 命名空间
返回页首