Share via


IGatewayOperations.GetSharedKeyAsync Method

Asynchronously retrieves the shared key on the Virtual Network Gateway.

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

Usage

'Usage
Dim instance As IGatewayOperations
Dim virtualNetworkName As String
Dim localNetworkName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of GatewayGetSharedKeyResponse)

returnValue = instance.GetSharedKeyAsync(virtualNetworkName, localNetworkName, cancellationToken)

Syntax

'Declaration
Function GetSharedKeyAsync ( _
    virtualNetworkName As String, _
    localNetworkName As String, _
    cancellationToken As CancellationToken _
) As Task(Of GatewayGetSharedKeyResponse)
Task<GatewayGetSharedKeyResponse> GetSharedKeyAsync (
    string virtualNetworkName,
    string localNetworkName,
    CancellationToken cancellationToken
)
Task<GatewayGetSharedKeyResponse^>^ GetSharedKeyAsync (
    String^ virtualNetworkName, 
    String^ localNetworkName, 
    CancellationToken cancellationToken
)
Task<GatewayGetSharedKeyResponse> GetSharedKeyAsync (
    String virtualNetworkName, 
    String localNetworkName, 
    CancellationToken cancellationToken
)
function GetSharedKeyAsync (
    virtualNetworkName : String, 
    localNetworkName : String, 
    cancellationToken : CancellationToken
) : Task<GatewayGetSharedKeyResponse>

Parameters

  • virtualNetworkName
    The name of the Virtual Network.
  • localNetworkName
    The name of the local network.
  • cancellationToken
    The cancellation token.

Return Value

An GatewayGetSharedKeyResponse object that contains the shared key.

Remarks

For more information about retrieving the shared key, see Get Virtual Network Gateway Shared Key

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

See Also

Reference

IGatewayOperations Interface
IGatewayOperations Members
Microsoft.WindowsAzure.Management.VirtualNetworks Namespace