Udostępnij za pośrednictwem


OrganizationServiceContext.DeleteObject Method

Definition

Overloads

DeleteObject(Entity)

Changes the state of the specified entity to be deleted in the OrganizationServiceContext.

DeleteObject(Entity, Boolean)

Changes the state of the specified entity to be deleted in the OrganizationServiceContext.

DeleteObject(Entity)

Changes the state of the specified entity to be deleted in the OrganizationServiceContext.

public:
 void DeleteObject(Microsoft::Xrm::Sdk::Entity ^ entity);
public void DeleteObject (Microsoft.Xrm.Sdk.Entity entity);
member this.DeleteObject : Microsoft.Xrm.Sdk.Entity -> unit
Public Sub DeleteObject (entity As Entity)

Parameters

entity
Entity

The tracked entity to be changed to the deleted state.

Remarks

All links to the specified entity are also marked deleted.

Applies to

DeleteObject(Entity, Boolean)

Changes the state of the specified entity to be deleted in the OrganizationServiceContext.

public:
 void DeleteObject(Microsoft::Xrm::Sdk::Entity ^ entity, bool recursive);
public void DeleteObject (Microsoft.Xrm.Sdk.Entity entity, bool recursive);
member this.DeleteObject : Microsoft.Xrm.Sdk.Entity * bool -> unit
Public Sub DeleteObject (entity As Entity, recursive As Boolean)

Parameters

entity
Entity

The tracked entity to be changed to the deleted state.

recursive
Boolean

true to specify entities to be deleted recursively, otherwise false.

Remarks

All links to the specified entity are also marked deleted.

Applies to