CrmOrganizationServiceContext.Associate Kaedah

Applies To: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Creates a link between records (entity instances). (Developer Extensions)

Ruang nama: Microsoft.Xrm.Client
Perhimpunan: Microsoft.Xrm.Client (dalam Microsoft.Xrm.Client.dll)

'Penggunaan
Dim instance As CrmOrganizationServiceContext
Dim entityName As String
Dim entityId As Guid
Dim relationship As Relationship
Dim relatedEntities As EntityReferenceCollection

instance.Associate(entityName, entityId, relationship, relatedEntities)

public void Associate (
	string entityName,
	Guid entityId,
	Relationship relationship,
	EntityReferenceCollection relatedEntities
)

Parameter

entityName

Type: Rentetan. The logical name of the entity specified in the entityId parameter.

entityId

Type: Guid. The ID of the record to which the related records will be associated.

relationship

Type: Relationship. The relationship to be used to create the link.

relatedEntities

Type: EntityReferenceCollection. A collection of entity references (references to records) to be associated.

Extends the core implementation of the Associate method.


Sebarang ahli statik awam (Shared dalam Visual Basic) jenis ini adalah selamat rentetan. Dalam apa jua keadaan, ahli tidak dijamin selamat rentetan.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.
Tunjukkan: