IOrganizationServiceAsync2.RetrieveAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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