Freigeben über


ServiceClient.AssociateAsync Method

Definition

Overloads

AssociateAsync(String, Guid, Relationship, EntityReferenceCollection)

Associate an entity with a set of entities

AssociateAsync(String, Guid, Relationship, EntityReferenceCollection, CancellationToken)

Associate an entity with a set of entities

AssociateAsync(String, Guid, Relationship, EntityReferenceCollection)

Associate an entity with a set of entities

public System.Threading.Tasks.Task AssociateAsync (string entityName, Guid entityId, Microsoft.Xrm.Sdk.Relationship relationship, Microsoft.Xrm.Sdk.EntityReferenceCollection relatedEntities);
abstract member AssociateAsync : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection -> System.Threading.Tasks.Task
override this.AssociateAsync : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection -> System.Threading.Tasks.Task
Public Function AssociateAsync (entityName As String, entityId As Guid, relationship As Relationship, relatedEntities As EntityReferenceCollection) As Task

Parameters

entityName
String
entityId
Guid
relationship
Relationship
relatedEntities
EntityReferenceCollection

Returns

Implements

Remarks

Creates a many-to-many relationship. More information: AssociateRequest

Applies to

AssociateAsync(String, Guid, Relationship, EntityReferenceCollection, CancellationToken)

Associate an entity with a set of entities

public System.Threading.Tasks.Task AssociateAsync (string entityName, Guid entityId, Microsoft.Xrm.Sdk.Relationship relationship, Microsoft.Xrm.Sdk.EntityReferenceCollection relatedEntities, System.Threading.CancellationToken cancellationToken);
abstract member AssociateAsync : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.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

Implements

Remarks

Creates a many-to-many relationship. More information: AssociateRequest

Applies to