Sdílet prostřednictvím


LinkEntity.AddLink Method (String, String, String)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Adds a link, setting the link to entity name, the link from attribute name and the link to attribute name.

Namespace:   Microsoft.Xrm.Sdk.Query
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

public LinkEntity AddLink(
    string linkToEntityName,
    string linkFromAttributeName,
    string linkToAttributeName
)
Public Function AddLink (
    linkToEntityName As String,
    linkFromAttributeName As String,
    linkToAttributeName As String
) As LinkEntity

Parameters

  • linkFromAttributeName
    Type: System.String

    Type: String. The name of the attribute to link from.

Return Value

Type: Microsoft.Xrm.Sdk.Query.LinkEntity

Type: LinkEntity
The link entity that was created.

See Also

AddLink Overload
LinkEntity Class
Microsoft.Xrm.Sdk.Query Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright