Unmark a needed entity.

Namespace:  C1.Data
Assembly:  C1.Data.Entity (in C1.Data.Entity.dll)

Syntax

C#
public bool Release(
	Object entity
)
Visual Basic
Public Function Release ( _
	entity As Object _
) As Boolean

Parameters

entity
Type: System..::..Object
An entity that was marked as needed using AddRef(Object).

Return Value

True if the entity was unmarked; otherwise, False (the entity is not unmarked until every AddRef is balanced by a Release).

Remarks

Calling this method does not release memory by itself. The entity becomes unneeded, so it can be disposed of at cache cleanup time.

See Also