QueryExpression.AddLink Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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) |
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)
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
Returns
Type: LinkEntityThe link entity instance created and added to the query expression.
Applies to
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.
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
Public Function AddLink (linkToEntityName As String, linkFromAttributeName As String, linkToAttributeName As String, joinOperator As JoinOperator) As LinkEntity
Parameters
- joinOperator
- JoinOperator
Type: JoinOperator. The join operator.
Returns
Type: LinkEntityThe link entity instance created and added to the query expression.