Share via


LinkEntity.AddLink Method

Definition

Overloads

AddLink(String, String, String)

Adds a link to the LinkEntity.LinkEntities collection, setting the LinkToEntityName, LinkFromAttributeName, and LinkToAttributeName properties.

AddLink(String, String, String, JoinOperator)

Adds a link to the LinkEntity.LinkEntities collection, setting the LinkToEntityName, LinkFromAttributeName, LinkToAttributeName, and JoinOperator properties.

AddLink(String, String, String)

Adds a link to the LinkEntity.LinkEntities collection, setting the LinkToEntityName, LinkFromAttributeName, and LinkToAttributeName properties.

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 the table to link to.

linkFromAttributeName
String

The name of the column to link from.

linkToAttributeName
String

The name of the column to link to.

Returns

The LinkEntity instance that was created.

Applies to

AddLink(String, String, String, JoinOperator)

Adds a link to the LinkEntity.LinkEntities collection, setting the LinkToEntityName, LinkFromAttributeName, LinkToAttributeName, and JoinOperator properties.

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 the table to link to.

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 LinkEntity instance that was created.

Applies to