GatewayOperationsExtensions.GetSharedKeyAsync Method (IGatewayOperations, String, String)
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
public static Task<GatewayGetSharedKeyResponse> GetSharedKeyAsync(
this IGatewayOperations operations,
string networkName,
string localNetworkName
)
public:
[ExtensionAttribute]
static Task<GatewayGetSharedKeyResponse^>^ GetSharedKeyAsync(
IGatewayOperations^ operations,
String^ networkName,
String^ localNetworkName
)
static member GetSharedKeyAsync :
operations:IGatewayOperations *
networkName:string *
localNetworkName:string -> Task<GatewayGetSharedKeyResponse>
<ExtensionAttribute>
Public Shared Function GetSharedKeyAsync (
operations As IGatewayOperations,
networkName As String,
localNetworkName As String
) As Task(Of GatewayGetSharedKeyResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.Network.IGatewayOperationsReference to the Microsoft.WindowsAzure.Management.Network.IGatewayOperations.
networkName
Type: System.StringRequired. The name of the virtual network for this gateway.
localNetworkName
Type: System.StringRequired. The name of the local network.
Return Value
Type: System.Threading.Tasks.Task<GatewayGetSharedKeyResponse>
The response to the get shared key request.
See Also
GatewayOperationsExtensions Class
Microsoft.WindowsAzure.Management.Network Namespace
Return to top