共用方式為


VariableOperationsExtensions.GetAsync 方法

定義

多載

GetAsync(IVariableOperations, String, String, String)
GetAsync(IVariableOperations, String, String, String, CancellationToken)

擷取變數名稱所識別的變數。 http://aka.ms/azureautomationsdk/variableoperations

GetAsync(IVariableOperations, String, String, String)

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.VariableGetResponse> GetAsync (this Microsoft.Azure.Management.Automation.IVariableOperations operations, string resourceGroupName, string automationAccount, string variableName);
static member GetAsync : Microsoft.Azure.Management.Automation.IVariableOperations * string * string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.VariableGetResponse>
<Extension()>
Public Function GetAsync (operations As IVariableOperations, resourceGroupName As String, automationAccount As String, variableName As String) As Task(Of VariableGetResponse)

參數

operations
IVariableOperations
resourceGroupName
String
automationAccount
String
variableName
String

傳回

適用於

GetAsync(IVariableOperations, String, String, String, CancellationToken)

擷取變數名稱所識別的變數。 http://aka.ms/azureautomationsdk/variableoperations

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Variable> GetAsync (this Microsoft.Azure.Management.Automation.IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Automation.IVariableOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Automation.Models.Variable>
<Extension()>
Public Function GetAsync (operations As IVariableOperations, resourceGroupName As String, automationAccountName As String, variableName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Variable)

參數

operations
IVariableOperations

這個擴充方法的作業群組。

resourceGroupName
String

Azure 資源群組的名稱。

automationAccountName
String

自動化帳戶的名稱。

variableName
String

變數的名稱。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於