IOrganizationServiceAsync2.RetrieveAsync Method

Definition

Retrieves instance of an entity.

[System.ServiceModel.OperationContract]
public System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity> RetrieveAsync (string entityName, Guid id, Microsoft.Xrm.Sdk.Query.ColumnSet columnSet, System.Threading.CancellationToken cancellationToken);
[<System.ServiceModel.OperationContract>]
abstract member 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

ColumnSet collection to return with the request.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

The specified entity.

Attributes

Applies to