Freigeben über


ServicePrincipalsOperationsExtensions.GetAsync Methode

Definition

Ruft Dienstprinzipalinformationen aus dem Verzeichnis ab. Query by objectId or pass a filter to query by appId

public static System.Threading.Tasks.Task<Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal> GetAsync (this Microsoft.Azure.Graph.RBAC.IServicePrincipalsOperations operations, string objectId, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Graph.RBAC.IServicePrincipalsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal>
<Extension()>
Public Function GetAsync (operations As IServicePrincipalsOperations, objectId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServicePrincipal)

Parameter

operations
IServicePrincipalsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

objectId
String

Die Objekt-ID des abzurufenden Dienstprinzipals.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: