Share via


CrmServiceClient.Associate Method

Definition

Issues an Associate Request to CRM.

public:
 virtual void Associate(System::String ^ entityName, Guid entityId, Microsoft::Xrm::Sdk::Relationship ^ relationship, Microsoft::Xrm::Sdk::EntityReferenceCollection ^ relatedEntities);
public void Associate (string entityName, Guid entityId, Microsoft.Xrm.Sdk.Relationship relationship, Microsoft.Xrm.Sdk.EntityReferenceCollection relatedEntities);
abstract member Associate : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection -> unit
override this.Associate : string * Guid * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.EntityReferenceCollection -> unit
Public Sub Associate (entityName As String, entityId As Guid, relationship As Relationship, relatedEntities As EntityReferenceCollection)

Parameters

entityName
String

Entity Name to associate to

entityId
Guid

ID if Entity to associate to

relationship
Relationship

Relationship Name

relatedEntities
EntityReferenceCollection

Entities to associate

Implements

Remarks

This method is a wrapper for IOrganizationService.Associate(String, Guid, Relationship, EntityReferenceCollection).

Applies to