OwinContextExtensions.GetUserManager<TManager> Method

Gets the user manager from the context.

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


<ExtensionAttribute> _
Public Shared Function GetUserManager(Of TManager) ( _
    context As IOwinContext _
) As TManager
Dim context As IOwinContext 
Dim returnValue As TManager

returnValue = context.GetUserManager()
public static TManager GetUserManager<TManager>(
    this IOwinContext context
generic<typename TManager>
static TManager GetUserManager(
    IOwinContext^ context
static member GetUserManager : 
        context:IOwinContext -> 'TManager 
JScript does not support generic types and methods.

Type Parameters

  • TManager
    The type of the manager.


Return Value

Type: TManager
The user manager from the context.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IOwinContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

See Also


OwinContextExtensions Class

Microsoft.AspNet.Identity.Owin Namespace

Other Resources

ASP.NET Identity