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

Applies To: Microsoft Dynamics CRM 2013, Microsoft 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)

Syntax

'Declaration
Public Function AddLink ( _
    linkToEntityName As String, _
    linkFromAttributeName As String, _
    linkToAttributeName As String, _
    joinOperator As JoinOperator _
) As LinkEntity
public LinkEntity AddLink (
    string linkToEntityName,
    string linkFromAttributeName,
    string linkToAttributeName,
    JoinOperator joinOperator
)

Parameters

  • linkToEntityName
    Type: String. The name of the entity to link to.
  • linkFromAttributeName
    Type: String. The name of the attribute to link from.
  • linkToAttributeName
    Type: String. The name of the attribute to link to.

Return Value

Type: LinkEntity
The link entity that was created.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

LinkEntity Class
LinkEntity Members
Microsoft.Xrm.Sdk.Query Namespace

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.