Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

QueryExpression.AddLink Method (Overloaded)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Adds the specified link to the query expression.

Overload List

NameDescription
QueryExpression.AddLink Method (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.
QueryExpression.AddLink Method (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, the attribute name to link to and the join operator.

QueryExpression.AddLink Method (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.

Syntax

[Visual Basic .NET]
Public Function AddLink(
  ByVal linkToEntityName As String,
  ByVal linkFromAttributeName As String,
  ByVal linkToAttributeName As String
) As LinkEntity
[C#]
public LinkEntity AddLink(
  string  linkToEntityName,
  string  linkFromAttributeName,
  string  linkToAttributeName
);

Parameters

linkToEntityName

Specifies a String that contains the name of entity to link from.

linkFromAttributeName

Specifies a String that contains the name of the attribute to link from.

linkToAttributeName

Specifies a String that contains the name of the attribute to link to.

Return Value

Returns a LinkEntity type.

Requirements

Namespace: Microsoft.Crm.Sdk.Query

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference

QueryExpression.AddLink Method (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, the attribute name to link to and the join operator.

Syntax

[VisuAdds the specified link to the query expression setting the entity name to link to, the attribute name to link from, the attribute name to link to and the join operator.al Basic .NET]
Public Function AddLink(
  ByVal linkToEntityName As String,
  ByVal linkFromAttributeName As String,
  ByVal linkToAttributeName As String,
  ByVal joinOperator As JoinOperator
) As LinkEntity
[C#]
public LinkEntity AddLink(
  string  linkToEntityName,
  string  linkFromAttributeName,
  string  linkToAttributeName,
  JoinOperator  joinOperator
);

Parameters

linkToEntityName

Specifies a String that contains the name of entity to link from.

linkFromAttributeName

Specifies a String that contains the name of the attribute to link from.

linkToAttributeName

Specifies a String that contains the name of the attribute to link to.

joinOperator

Specifies the JoinOperator.

Return Value

Returns a LinkEntity type.

Requirements

Namespace: Microsoft.Crm.Sdk.Query

Assembly: Microsoft.Crm.Sdk.dll

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft