LinkEntity.AddLink Method (String, String, String, JoinOperator)

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Adds a link setting the link to entity name, the link from attribute name, the link to attribute name, and the join operator.

Namespace:   Microsoft.Xrm.Sdk.Query
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

public LinkEntity AddLink(
	string linkToEntityName,
	string linkFromAttributeName,
	string linkToAttributeName,
	JoinOperator joinOperator
)

Parameters

linkToEntityName
Type: System.String

Type: String. The name of the entity to link to.

linkFromAttributeName
Type: System.String

Type: String. The name of the attribute to link from.

linkToAttributeName
Type: System.String

Type: String. The name of the attribute to link to.

joinOperator
Type: Microsoft.Xrm.Sdk.Query.JoinOperator

Type: JoinOperator. The join operator.

Return Value

Type: Microsoft.Xrm.Sdk.Query.LinkEntity

Type: LinkEntity
The link entity that was created.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: