IOrganizationServiceAsync2.AssociateAsync 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.
Associate an entity with a set of entities.
[System.ServiceModel.OperationContract]
public System.Threading.Tasks.Task AssociateAsync (string entityName, Guid entityId, Microsoft.Xrm.Sdk.Relationship relationship, Microsoft.Xrm.Sdk.EntityReferenceCollection relatedEntities, System.Threading.CancellationToken cancellationToken);
[<System.ServiceModel.OperationContract>]
abstract member AssociateAsync : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AssociateAsync (entityName As String, entityId As Guid, relationship As Relationship, relatedEntities As EntityReferenceCollection, cancellationToken As CancellationToken) As Task
Parameters
- entityName
- String
- entityId
- Guid
- relationship
- Relationship
- relatedEntities
- EntityReferenceCollection
- cancellationToken
- CancellationToken
Propagates notification that operations should be canceled.
Returns
- Attributes