共用方式為


WatcherOperationsExtensions.GetAsync 方法

定義

擷取監看員名稱所識別的監看員。 http://aka.ms/azureautomationsdk/watcheroperations

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

參數

operations
IWatcherOperations

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

resourceGroupName
String

Azure 資源群組的名稱。

automationAccountName
String

自動化帳戶的名稱。

watcherName
String

監看員名稱。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於