EntitySet<TEntity>.Remove Method (TEntity)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes an entity.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public bool Remove(
	TEntity entity
)

Parameters

entity
Type: TEntity

The entity to be removed.

Return Value

Type: System.Boolean

true if the entity is successfully removed; otherwise, false.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show: