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