Share via


ObjectContext.DeleteObject(Object) Method

Definition

Marks an object for deletion.

public virtual void DeleteObject (object entity);
abstract member DeleteObject : obj -> unit
override this.DeleteObject : obj -> unit
Public Overridable Sub DeleteObject (entity As Object)

Parameters

entity
Object

An object that specifies the entity to delete. The object can be in any state except Detached .

Applies to