GatewayOperationsExtensions.GetSharedKey Method
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 GatewayGetSharedKeyResponse
returnValue = GatewayOperationsExtensions.GetSharedKey(operations, virtualNetworkName, localNetworkName)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetSharedKey ( _
operations As IGatewayOperations, _
virtualNetworkName As String, _
localNetworkName As String _
) As GatewayGetSharedKeyResponse
[ExtensionAttribute]
public static GatewayGetSharedKeyResponse GetSharedKey (
IGatewayOperations operations,
string virtualNetworkName,
string localNetworkName
)
[ExtensionAttribute]
public:
static GatewayGetSharedKeyResponse^ GetSharedKey (
IGatewayOperations^ operations,
String^ virtualNetworkName,
String^ localNetworkName
)
/** @attribute ExtensionAttribute() */
public static GatewayGetSharedKeyResponse GetSharedKey (
IGatewayOperations operations,
String virtualNetworkName,
String localNetworkName
)
ExtensionAttribute
public static function GetSharedKey (
operations : IGatewayOperations,
virtualNetworkName : String,
localNetworkName : String
) : 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