QueryExpression.AddLink QueryExpression.AddLink QueryExpression.AddLink QueryExpression.AddLink Method

Definition

Overloads

AddLink(String, String, String) AddLink(String, String, String) AddLink(String, String, String) AddLink(String, String, String)

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.

AddLink(String, String, String, JoinOperator) AddLink(String, String, String, JoinOperator) AddLink(String, String, String, JoinOperator)

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.

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.

public:
 Microsoft::Xrm::Sdk::Query::LinkEntity ^ AddLink(System::String ^ linkToEntityName, System::String ^ linkFromAttributeName, System::String ^ linkToAttributeName);
public Microsoft.Xrm.Sdk.Query.LinkEntity AddLink (string linkToEntityName, string linkFromAttributeName, string linkToAttributeName);
member this.AddLink : string * string * string -> Microsoft.Xrm.Sdk.Query.LinkEntity
Public Function AddLink (linkToEntityName As String, linkFromAttributeName As String, linkToAttributeName As String) As LinkEntity

Parameters

linkToEntityName
String String String String

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

linkFromAttributeName
String String String String

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

linkToAttributeName
String String String String

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

Returns

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

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.

public:
 Microsoft::Xrm::Sdk::Query::LinkEntity ^ AddLink(System::String ^ linkToEntityName, System::String ^ linkFromAttributeName, System::String ^ linkToAttributeName, Microsoft::Xrm::Sdk::Query::JoinOperator joinOperator);
public Microsoft.Xrm.Sdk.Query.LinkEntity AddLink (string linkToEntityName, string linkFromAttributeName, string linkToAttributeName, Microsoft.Xrm.Sdk.Query.JoinOperator joinOperator);
member this.AddLink : string * string * string * Microsoft.Xrm.Sdk.Query.JoinOperator -> Microsoft.Xrm.Sdk.Query.LinkEntity

Parameters

linkToEntityName
String String String String

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

linkFromAttributeName
String String String String

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

linkToAttributeName
String String String String

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

joinOperator
JoinOperator JoinOperator JoinOperator JoinOperator

Type: JoinOperator. The join operator.

Returns

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

Applies to