GatewayOperationsExtensions.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 operations As IGatewayOperations
Dim virtualNetworkName As String
Dim localNetworkName As String
Dim returnValue As Task(Of GatewayGetSharedKeyResponse)
returnValue = GatewayOperationsExtensions.GetSharedKeyAsync(operations, virtualNetworkName, localNetworkName)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetSharedKeyAsync ( _
operations As IGatewayOperations, _
virtualNetworkName As String, _
localNetworkName As String _
) As Task(Of GatewayGetSharedKeyResponse)
[ExtensionAttribute]
public static Task<GatewayGetSharedKeyResponse> GetSharedKeyAsync (
IGatewayOperations operations,
string virtualNetworkName,
string localNetworkName
)
[ExtensionAttribute]
public:
static Task<GatewayGetSharedKeyResponse^>^ GetSharedKeyAsync (
IGatewayOperations^ operations,
String^ virtualNetworkName,
String^ localNetworkName
)
/** @attribute ExtensionAttribute() */
public static Task<GatewayGetSharedKeyResponse> GetSharedKeyAsync (
IGatewayOperations operations,
String virtualNetworkName,
String localNetworkName
)
ExtensionAttribute
public static function GetSharedKeyAsync (
operations : IGatewayOperations,
virtualNetworkName : String,
localNetworkName : String
) : Task<GatewayGetSharedKeyResponse>
Parameters
- operations
The IGatewayOperations object that specifies the Virtual Network Gateway operations.
- virtualNetworkName
The name of the Virtual Network.
- localNetworkName
The name of the local network.
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
GatewayOperationsExtensions Class
GatewayOperationsExtensions Members
Microsoft.WindowsAzure.Management.VirtualNetworks Namespace