Share via


ServiceClient.RetrieveAsync Method

Definition

Overloads

RetrieveAsync(String, Guid, ColumnSet)

Retrieves instance of an entity

RetrieveAsync(String, Guid, ColumnSet, CancellationToken)

Retrieves instance of an entity

RetrieveAsync(String, Guid, ColumnSet)

Retrieves instance of an entity

public System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity> RetrieveAsync (string entityName, Guid id, Microsoft.Xrm.Sdk.Query.ColumnSet columnSet);
abstract member RetrieveAsync : string * Guid * Microsoft.Xrm.Sdk.Query.ColumnSet -> System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity>
override this.RetrieveAsync : string * Guid * Microsoft.Xrm.Sdk.Query.ColumnSet -> System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity>
Public Function RetrieveAsync (entityName As String, id As Guid, columnSet As ColumnSet) As Task(Of Entity)

Parameters

entityName
String

Logical name of entity

id
Guid

Id of entity

columnSet
ColumnSet

Column Set collection to return with the request

Returns

Selected Entity

Implements

Applies to

RetrieveAsync(String, Guid, ColumnSet, CancellationToken)

Retrieves instance of an entity

public System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity> RetrieveAsync (string entityName, Guid id, Microsoft.Xrm.Sdk.Query.ColumnSet columnSet, System.Threading.CancellationToken cancellationToken);
abstract member RetrieveAsync : string * Guid * Microsoft.Xrm.Sdk.Query.ColumnSet * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity>
override this.RetrieveAsync : string * Guid * Microsoft.Xrm.Sdk.Query.ColumnSet * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity>
Public Function RetrieveAsync (entityName As String, id As Guid, columnSet As ColumnSet, cancellationToken As CancellationToken) As Task(Of Entity)

Parameters

entityName
String

Logical name of entity

id
Guid

Id of entity

columnSet
ColumnSet

Column Set collection to return with the request

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

Selected Entity

Implements

Applies to