IGatewayOperations.GetDeviceConfigurationScriptAsync 方法 (String, GatewayGetDeviceConfigurationScriptParameters, CancellationToken)

 

获取设备配置脚本操作将返回可用于配置要连接到网关的本地 VPN 设备的脚本。 (请参阅 https://msdn.microsoft.com/en-us/library/windowsazure/jj154115.aspx 有关详细信息)

命名空间:   Microsoft.WindowsAzure.Management.Network
程序集:  Microsoft.WindowsAzure.Management.Network(Microsoft.WindowsAzure.Management.Network.dll 中)

语法

Task<GatewayGetDeviceConfigurationScriptResponse> GetDeviceConfigurationScriptAsync(
    string networkName,
    GatewayGetDeviceConfigurationScriptParameters parameters,
    CancellationToken cancellationToken
)
Task<GatewayGetDeviceConfigurationScriptResponse^>^ GetDeviceConfigurationScriptAsync(
    String^ networkName,
    GatewayGetDeviceConfigurationScriptParameters^ parameters,
    CancellationToken cancellationToken
)
abstract GetDeviceConfigurationScriptAsync : 
        networkName:string *
        parameters:GatewayGetDeviceConfigurationScriptParameters *
        cancellationToken:CancellationToken -> Task<GatewayGetDeviceConfigurationScriptResponse>
Function GetDeviceConfigurationScriptAsync (
    networkName As String,
    parameters As GatewayGetDeviceConfigurationScriptParameters,
    cancellationToken As CancellationToken
) As Task(Of GatewayGetDeviceConfigurationScriptResponse)

参数

  • networkName
    Type: System.String

    此网关的虚拟网络的的名称。

返回值

Type: System.Threading.Tasks.Task<GatewayGetDeviceConfigurationScriptResponse>

从获取设备配置脚本操作返回配置脚本。

请参阅

IGatewayOperations 接口
Microsoft.WindowsAzure.Management.Network 命名空间

返回页首