Unmark a needed entity.
Namespace:
C1.DataAssembly: C1.Silverlight.Data.Entity (in C1.Silverlight.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.