Udostępnij za pośrednictwem


IAssignmentsOperations.ListWithHttpMessagesAsync Metoda

Definicja

Wyświetlanie listy przypisań strategii w ramach subskrypcji lub grupy zarządzania.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Blueprint.Models.Assignment>>> ListWithHttpMessagesAsync (string resourceScope, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Blueprint.Models.Assignment>>>
Public Function ListWithHttpMessagesAsync (resourceScope As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of Assignment)))

Parametry

resourceScope
String

Zakres zasobu. Prawidłowe zakresy to: grupa zarządzania (format: "/providers/Microsoft.Management/managementGroups/{managementGroup}"), subskrypcja (format: "/subscriptions/{subscriptionId}").

customHeaders
Dictionary<String,List<String>>

Nagłówki, które zostaną dodane do żądania.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Wyjątki

Zgłaszany, gdy operacja zwróciła nieprawidłowy kod stanu

Zgłaszany, gdy nie można wykonać deserializacji odpowiedzi

Zgłaszany, gdy wymagany parametr ma wartość null

Dotyczy