OwinContextExtensions.Set<T> Method (IOwinContext, T)
Stores an object in the OwinContext using a key based on the AssemblyQualified type name.
Namespace: Microsoft.AspNet.Identity.Owin
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
public static IOwinContext Set<T>(
this IOwinContext context,
T value
)
public:
generic<typename T>
[ExtensionAttribute]
static IOwinContext^ Set(
IOwinContext^ context,
T value
)
static member Set<'T> :
context:IOwinContext *
value:'T -> IOwinContext
<ExtensionAttribute>
Public Shared Function Set(Of T) (
context As IOwinContext,
value As T
) As IOwinContext
Parameters
context
Type: Microsoft.Owin.IOwinContextThe OWIN context.
value
Type: TThe value of the context.
Return Value
Type: Microsoft.Owin.IOwinContext
An IOwinContext object.
Type Parameters
- T
The type of the context.
See Also
OwinContextExtensions Class
Microsoft.AspNet.Identity.Owin Namespace
ASP.NET Identity
Return to top