共用方式為


BatchAccountOperationsExtensions.GetDetectorAsync 方法

定義

取得指定 Batch 帳戶之指定偵測器的相關資訊。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.DetectorResponse> GetDetectorAsync (this Microsoft.Azure.Management.Batch.IBatchAccountOperations operations, string resourceGroupName, string accountName, string detectorId, System.Threading.CancellationToken cancellationToken = default);
static member GetDetectorAsync : Microsoft.Azure.Management.Batch.IBatchAccountOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.DetectorResponse>
<Extension()>
Public Function GetDetectorAsync (operations As IBatchAccountOperations, resourceGroupName As String, accountName As String, detectorId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DetectorResponse)

參數

operations
IBatchAccountOperations

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

resourceGroupName
String

包含 Batch 帳戶的資源群組名稱。

accountName
String

Batch 帳戶的名稱。

detectorId
String

偵測器的名稱。

cancellationToken
CancellationToken

取消語彙基元。

傳回

適用於