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
- linkToEntityName
- String
The name of entity to link from.
- linkFromAttributeName
- String
The name of the attribute to link from.
- linkToAttributeName
- String
The name of the attribute to link to.
Returns
The 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
- linkToEntityName
- String
The name of entity to link from.
- linkFromAttributeName
- String
The name of the attribute to link from.
- linkToAttributeName
- String
The name of the attribute to link to.
- joinOperator
- JoinOperator
The join operator.
Returns
The link entity instance created and added to the query expression.