This topic has not yet been rated - Rate this topic

LinkEntity.LinkToAttributeName Property

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Gets or sets the logical name of the attribute that you are linking to.

Syntax

[Visual Basic .NET]
Public Property LinkToAttributeName As String
[C#]
public string LinkToAttributeName {get; set;}

Property Value

The value of this property is a String type.

Remarks

The logical name is all lowercase. For more information about naming conventions, see Using Entity Names.

Example

The following code example shows linking from the contract entity to the contract detail entity.

// Create the LinkEntity object to link 
// the contract and contractdetail entities.
LinkEntity link = new LinkEntity();

// Set the LinkEntity propertys.
link.LinkCriteria = filter;
link.LinkFromEntityName = EntityName.contract.ToString();
link.LinkFromAttributeName = "contractid";
link.LinkToEntityName = EntityName.contractdetail.ToString();
link.LinkToAttributeName = "contractid";

Requirements

Web Service: CrmService

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.