Share via


IGatewayOperations.GetSharedKeyAsync Method (String, String, CancellationToken)

 

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 https://msdn.microsoft.com/en-us/library/windowsazure/jj154122.aspx for more information)

Namespace:   Microsoft.WindowsAzure.Management.Network
Assembly:  Microsoft.WindowsAzure.Management.Network (in Microsoft.WindowsAzure.Management.Network.dll)

Syntax

Task<GatewayGetSharedKeyResponse> GetSharedKeyAsync(
    string networkName,
    string localNetworkName,
    CancellationToken cancellationToken
)
Task<GatewayGetSharedKeyResponse^>^ GetSharedKeyAsync(
    String^ networkName,
    String^ localNetworkName,
    CancellationToken cancellationToken
)
abstract GetSharedKeyAsync : 
        networkName:string *
        localNetworkName:string *
        cancellationToken:CancellationToken -> Task<GatewayGetSharedKeyResponse>
Function GetSharedKeyAsync (
    networkName As String,
    localNetworkName As String,
    cancellationToken As CancellationToken
) As Task(Of GatewayGetSharedKeyResponse)

Parameters

  • networkName
    Type: System.String

    The name of the virtual network for this gateway.

  • localNetworkName
    Type: System.String

    The name of the local network.

Return Value

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

The response to the get shared key request.

See Also

IGatewayOperations Interface
Microsoft.WindowsAzure.Management.Network Namespace

Return to top