DataSource for Entity Framework in WPF
C1.Data Namespace / ClientScope Class / Release Method / Release(Object) Method
An entity that was marked as needed using AddRef(Object).

In This Topic
    Release(Object) Method
    In This Topic
    Unmark a needed entity.
    Syntax
    'Declaration
     
    Public Overloads Function Release( _
       ByVal entity As Object _
    ) As Boolean
    public bool Release( 
       object entity
    )

    Parameters

    entity
    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