OrganizationServiceContextExtensions.DetachLink Method (OrganizationServiceContext, Entity, String, Entity, Nullable<EntityRole>)
Applies To: Dynamics CRM 2013
Detaches a two entity instances.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static bool DetachLink(
this OrganizationServiceContext context,
Entity source,
string relationshipSchemaName,
Entity target,
Nullable<EntityRole> primaryEntityRole = null
)
public:
[ExtensionAttribute]
static bool DetachLink(
OrganizationServiceContext^ context,
Entity^ source,
String^ relationshipSchemaName,
Entity^ target,
Nullable<EntityRole> primaryEntityRole = null
)
static member DetachLink :
context:OrganizationServiceContext *
source:Entity *
relationshipSchemaName:string *
target:Entity *
primaryEntityRole:Nullable<EntityRole> = null -> bool
<ExtensionAttribute>
Public Shared Function DetachLink (
context As OrganizationServiceContext,
source As Entity,
relationshipSchemaName As String,
target As Entity,
primaryEntityRole As Nullable(Of EntityRole)
) As Boolean
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextType: OrganizationServiceContext. The service context.
source
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The source entity instance.
relationshipSchemaName
Type: System.StringType: String. The schema name of the relationship.
target
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The target entity instance.
primaryEntityRole
Type: System.Nullable<EntityRole>Type: Nullable<EntityRole>. The role that the entity plays in the relationship, referencing or referenced.
Return Value
Type: System.Boolean
Type: Boolean
.
Remarks
This is an extension to the core DetachLink method.
See Also
DetachLink Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace
Return to top