IGatewayOperations.BeginConnectDisconnectOrTestingAsync 方法 (String, String, GatewayConnectDisconnectOrTestParameters, CancellationToken)

 

若要连接、 从其断开连接或测试与本地网络站点的连接、 访问表示本地网络的连接资源和指定连接,断开或测试,以执行所需的操作。 (请参阅 https://msdn.microsoft.com/en-us/library/windowsazure/jj154107.aspx 有关详细信息)

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

语法

Task<GatewayOperationResponse> BeginConnectDisconnectOrTestingAsync(
    string networkName,
    string localNetworkSiteName,
    GatewayConnectDisconnectOrTestParameters parameters,
    CancellationToken cancellationToken
)
Task<GatewayOperationResponse^>^ BeginConnectDisconnectOrTestingAsync(
    String^ networkName,
    String^ localNetworkSiteName,
    GatewayConnectDisconnectOrTestParameters^ parameters,
    CancellationToken cancellationToken
)
abstract BeginConnectDisconnectOrTestingAsync : 
        networkName:string *
        localNetworkSiteName:string *
        parameters:GatewayConnectDisconnectOrTestParameters *
        cancellationToken:CancellationToken -> Task<GatewayOperationResponse>
Function BeginConnectDisconnectOrTestingAsync (
    networkName As String,
    localNetworkSiteName As String,
    parameters As GatewayConnectDisconnectOrTestParameters,
    cancellationToken As CancellationToken
) As Task(Of GatewayOperationResponse)

参数

  • networkName
    Type: System.String

    此网关的虚拟网络的的名称。

  • localNetworkSiteName
    Type: System.String

    要连接到的站点名称。

返回值

Type: System.Threading.Tasks.Task<GatewayOperationResponse>

标准服务响应,包括 HTTP 状态代码和请求 ID。

请参阅

IGatewayOperations 接口
Microsoft.WindowsAzure.Management.Network 命名空间

返回页首