Share via


UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.Dispose Method

 

Releases the resources used by the UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class.

Namespace:   Microsoft.AspNet.Identity.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

Overload List

Name Description
System_CAPS_pubmethod Dispose()

Releases all resources used by the current instance of the UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources used by the UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class and optionally releases the managed resources.

See Also

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace

Return to top

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.Dispose Method ()

Releases all resources used by the current instance of the UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.

Syntax

public void Dispose()
public:
virtual void Dispose() sealed
abstract Dispose : unit -> unit
override Dispose : unit -> unit
Public Sub Dispose

Implements

IDisposable.Dispose()

See Also

ASP.NET Identity

Return to top

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.Dispose Method (Boolean)

Releases the unmanaged resources used by the UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> class and optionally releases the managed resources.

Syntax

protected virtual void Dispose(
    bool disposing
)
protected:
virtual void Dispose(
    bool disposing
)
abstract Dispose : 
        disposing:bool -> unit
override Dispose : 
        disposing:bool -> unit
Protected Overridable Sub Dispose (
    disposing As Boolean
)

Parameters

  • disposing
    Type: System.Boolean

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

If disposing, calls dispose on the Context. Always nulls out the Context.

See Also

ASP.NET Identity

Return to top