DeleteObject Method
Collapse the table of content
Expand the table of content

ObjectSet<TEntity>.DeleteObject Method (TEntity)

.NET Framework (current version)

Marks an object for deletion.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public void DeleteObject(
	TEntity entity


Type: TEntity

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

This method is a wrapper around the DeleteObject method.

.NET Framework
Available since 4.0
Return to top
© 2016 Microsoft