共用方式為


IGatewayOperations.GetSharedKeyAsync Method

Definition

The Get Virtual Network Gateway Shared Key operation gets the shared key on the virtual network gateway for the specified virtual network connection to the specified local network in Azure. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj154122.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayGetSharedKeyResponse> GetSharedKeyAsync (string networkName, string localNetworkName, System.Threading.CancellationToken cancellationToken);
abstract member GetSharedKeyAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayGetSharedKeyResponse>
Public Function GetSharedKeyAsync (networkName As String, localNetworkName As String, cancellationToken As CancellationToken) As Task(Of GatewayGetSharedKeyResponse)

Parameters

networkName
String

The name of the virtual network for this gateway.

localNetworkName
String

The name of the local network.

cancellationToken
CancellationToken

Cancellation token.

Returns

The response to the get shared key request.

Applies to