IOrganizationServiceAsync2.CreateAndReturnAsync 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.
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>
Public Function CreateAndReturnAsync (entity As Entity, cancellationToken As CancellationToken) As Task(Of Entity)
Parameters
- entity
- Entity
The entity to create.
- cancellationToken
- CancellationToken
Propagates notification that operations should be canceled.
Returns
The newly created entity record.