OrganizationServiceContext.IsAttached Method (Entity, Relationship, Entity)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Determines whether an entity relationship is attached and therefore being tracked by the OrganizationServiceContext.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
public bool IsAttached(
Entity source,
Relationship relationship,
Entity target
)
Public Function IsAttached (
source As Entity,
relationship As Relationship,
target As Entity
) As Boolean
source
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The source entity in the link.
relationship
Type: Microsoft.Xrm.Sdk.RelationshipType: Relationship. The name of the attribute or navigation property on the source entity that represents the link between the source and target entity.
target
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The target entity in the link.
Type: System.Boolean
Type: Boolean.
true if the specified entity is attached to the OrganizationServiceContext; otherwise, false.
IsAttached Overload
OrganizationServiceContext Class
Microsoft.Xrm.Sdk.Client Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright