共用方式為


IGatewayOperations.BeginConnectDisconnectOrTestingAsync Method

Definition

To connect to, disconnect from, or test your connection to a local network site, access the connection resource representing the local network and specify Connect, Disconnect or Test to perform the desired operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj154107.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayOperationResponse> BeginConnectDisconnectOrTestingAsync (string networkName, string localNetworkSiteName, Microsoft.WindowsAzure.Management.Network.Models.GatewayConnectDisconnectOrTestParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member BeginConnectDisconnectOrTestingAsync : string * string * Microsoft.WindowsAzure.Management.Network.Models.GatewayConnectDisconnectOrTestParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayOperationResponse>
Public Function BeginConnectDisconnectOrTestingAsync (networkName As String, localNetworkSiteName As String, parameters As GatewayConnectDisconnectOrTestParameters, cancellationToken As CancellationToken) As Task(Of GatewayOperationResponse)

Parameters

networkName
String

The name of the virtual network for this gateway.

localNetworkSiteName
String

The name of the site to connect to.

parameters
GatewayConnectDisconnectOrTestParameters

Parameters supplied to the Begin Connect Disconnect Or Testing Gateway operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

A standard service response including an HTTP status code and request ID.

Applies to