Share via


OrganizationServiceContext.IsAttached Method

Definition

Overloads

IsAttached(Entity)

Determines whether an entity is attached and therefore being tracked by the OrganizationServiceContext.

IsAttached(Entity, Relationship, Entity)

Determines whether an entity relationship is attached and therefore being tracked by the OrganizationServiceContext.

IsAttached(Entity)

Determines whether an entity is attached and therefore being tracked by the OrganizationServiceContext.

public:
 bool IsAttached(Microsoft::Xrm::Sdk::Entity ^ entity);
public bool IsAttached (Microsoft.Xrm.Sdk.Entity entity);
member this.IsAttached : Microsoft.Xrm.Sdk.Entity -> bool
Public Function IsAttached (entity As Entity) As Boolean

Parameters

entity
Entity

The entity to be determined if it is attached.

Returns

true if the specified entity is attached to the OrganizationServiceContext; otherwise, false.

Applies to

IsAttached(Entity, Relationship, Entity)

Determines whether an entity relationship is attached and therefore being tracked by the OrganizationServiceContext.

public:
 bool IsAttached(Microsoft::Xrm::Sdk::Entity ^ source, Microsoft::Xrm::Sdk::Relationship ^ relationship, Microsoft::Xrm::Sdk::Entity ^ target);
public bool IsAttached (Microsoft.Xrm.Sdk.Entity source, Microsoft.Xrm.Sdk.Relationship relationship, Microsoft.Xrm.Sdk.Entity target);
member this.IsAttached : Microsoft.Xrm.Sdk.Entity * Microsoft.Xrm.Sdk.Relationship * Microsoft.Xrm.Sdk.Entity -> bool
Public Function IsAttached (source As Entity, relationship As Relationship, target As Entity) As Boolean

Parameters

source
Entity

The source entity in the link.

relationship
Relationship

The name of the attribute or navigation property on the source entity that represents the link between the source and target entity.

target
Entity

The target entity in the link.

Returns

true if the specified entity is attached to the OrganizationServiceContext; otherwise, false.

Applies to