Aracılığıyla paylaş


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

 

Applies To: Dynamics CRM 2015

Adds the specified link to the query expression setting the entity name to link to, the attribute name to link from and the attribute name to link to.

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

Syntax

public LinkEntity AddLink(
    string linkToEntityName,
    string linkFromAttributeName,
    string linkToAttributeName,
    JoinOperator joinOperator
)
public:
LinkEntity^ AddLink(
    String^ linkToEntityName,
    String^ linkFromAttributeName,
    String^ linkToAttributeName,
    JoinOperator joinOperator
)
member AddLink : 
        linkToEntityName:string *
        linkFromAttributeName:string *
        linkToAttributeName:string *
        joinOperator:JoinOperator -> LinkEntity
Public Function AddLink (
    linkToEntityName As String,
    linkFromAttributeName As String,
    linkToAttributeName As String,
    joinOperator As JoinOperator
) As LinkEntity

Parameters

  • linkFromAttributeName
    Type: System.String

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

Return Value

Type: Microsoft.Xrm.Sdk.Query.LinkEntity

Type: LinkEntity
The link entity instance created and added to the query expression.

See Also

AddLink Overload
QueryExpression Class
Microsoft.Xrm.Sdk.Query Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright