IGatewayOperations.GetSharedKeyAsync 方法 (String, String, CancellationToken)
获取虚拟网络网关共享密钥操作获取指定的虚拟网络连接到 Azure 中的指定本地网络的虚拟网络网关共享的密钥。 (请参阅 https://msdn.microsoft.com/en-us/library/windowsazure/jj154122.aspx 有关详细信息)
命名空间: Microsoft.WindowsAzure.Management.Network
程序集: Microsoft.WindowsAzure.Management.Network(Microsoft.WindowsAzure.Management.Network.dll 中)
语法
Task<GatewayGetSharedKeyResponse> GetSharedKeyAsync(
string networkName,
string localNetworkName,
CancellationToken cancellationToken
)
Task<GatewayGetSharedKeyResponse^>^ GetSharedKeyAsync(
String^ networkName,
String^ localNetworkName,
CancellationToken cancellationToken
)
abstract GetSharedKeyAsync :
networkName:string *
localNetworkName:string *
cancellationToken:CancellationToken -> Task<GatewayGetSharedKeyResponse>
Function GetSharedKeyAsync (
networkName As String,
localNetworkName As String,
cancellationToken As CancellationToken
) As Task(Of GatewayGetSharedKeyResponse)
参数
networkName
Type: System.String此网关的虚拟网络的的名称。
localNetworkName
Type: System.String本地网络的名称。
cancellationToken
Type: System.Threading.CancellationToken取消标记。
返回值
Type: System.Threading.Tasks.Task<GatewayGetSharedKeyResponse>
对获取共享密钥请求的响应。
请参阅
IGatewayOperations 接口
Microsoft.WindowsAzure.Management.Network 命名空间
返回页首