ServiceClient.CreateAndReturnAsync Method

Definition

Overloads

CreateAndReturnAsync(Entity)

Create an entity and process any related entities

CreateAndReturnAsync(Entity, CancellationToken)

Create an entity and process any related entities

CreateAndReturnAsync(Entity)

Create an entity and process any related entities

public System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity> CreateAndReturnAsync (Microsoft.Xrm.Sdk.Entity entity);
member this.CreateAndReturnAsync : Microsoft.Xrm.Sdk.Entity -> System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity>
Public Function CreateAndReturnAsync (entity As Entity) As Task(Of Entity)

Parameters

entity
Entity

entity to create

Returns

Returns the newly created record

Remarks

The call returns immediately while the create operation is processed asynchronously.

Applies to

CreateAndReturnAsync(Entity, CancellationToken)

Create an entity and process any related entities

public System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity> CreateAndReturnAsync (Microsoft.Xrm.Sdk.Entity entity, System.Threading.CancellationToken cancellationToken);
abstract member CreateAndReturnAsync : Microsoft.Xrm.Sdk.Entity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity>
override this.CreateAndReturnAsync : Microsoft.Xrm.Sdk.Entity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Xrm.Sdk.Entity>
Public Function CreateAndReturnAsync (entity As Entity, cancellationToken As CancellationToken) As Task(Of Entity)

Parameters

entity
Entity

entity to create

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

Returns the newly created record

Implements

Remarks

The call returns immediately while the create operation is processed asynchronously.

Applies to