RoleStore<TRole, TKey, TUserRole>.Dispose Method

 

Releases the resources used by the RoleStore<TRole, TKey, TUserRole> 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 RoleStore<TRole, TKey, TUserRole>.

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources used by the RoleStore<TRole, TKey, TUserRole> class and optionally releases the managed resources.

See Also

RoleStore<TRole, TKey, TUserRole> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top

RoleStore<TRole, TKey, TUserRole>.Dispose Method ()

Releases all resources used by the current instance of the RoleStore<TRole, TKey, TUserRole>.

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

RoleStore<TRole, TKey, TUserRole>.Dispose Method (Boolean)

Releases the unmanaged resources used by the RoleStore<TRole, TKey, TUserRole> 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