Share via


OrganizationServiceContextExtensions.AttachLink Method (OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)

 

Applies To: Dynamics CRM 2015

Attaches a two entity instances.

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static void AttachLink(
    this OrganizationServiceContext context,
    Entity source,
    string relationshipSchemaName,
    Entity target,
    Nullable<EntityRole> primaryEntityRole = null
)
public:
[ExtensionAttribute]
static void AttachLink(
    OrganizationServiceContext^ context,
    Entity^ source,
    String^ relationshipSchemaName,
    Entity^ target,
    Nullable<EntityRole> primaryEntityRole = null
)
static member AttachLink : 
        context:OrganizationServiceContext *
        source:Entity *
        relationshipSchemaName:string *
        target:Entity *
        primaryEntityRole:Nullable<EntityRole> = null -> unit
<ExtensionAttribute>
Public Shared Sub AttachLink (
    context As OrganizationServiceContext,
    source As Entity,
    relationshipSchemaName As String,
    target As Entity,
    primaryEntityRole As Nullable(Of EntityRole)
)

Parameters

  • relationshipSchemaName
    Type: System.String

    Type: String. The schema name of the relationship.

Remarks

This is an extension to the core AttachLink method.

See Also

AttachLink Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright