GatewayOperationsExtensions.GetSharedKeyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayGetSharedKeyResponse> GetSharedKeyAsync (this Microsoft.WindowsAzure.Management.Network.IGatewayOperations operations, string networkName, string localNetworkName);
static member GetSharedKeyAsync : Microsoft.WindowsAzure.Management.Network.IGatewayOperations * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayGetSharedKeyResponse>
<Extension()>
Public Function GetSharedKeyAsync (operations As IGatewayOperations, networkName As String, localNetworkName As String) As Task(Of GatewayGetSharedKeyResponse)
Parameters
- operations
- IGatewayOperations
Reference to the Microsoft.WindowsAzure.Management.Network.IGatewayOperations.
- networkName
- String
Required. The name of the virtual network for this gateway.
- localNetworkName
- String
Required. The name of the local network.
Returns
The response to the get shared key request.