OwinContext.Set<T> Method
Sets the given key and value in the OWIN environment.
Namespace: Microsoft.Owin
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Syntax
'Declaration
Public Overridable Function Set(Of T) ( _
key As String, _
value As T _
) As IOwinContext
'Usage
Dim instance As OwinContext
Dim key As String
Dim value As T
Dim returnValue As IOwinContext
returnValue = instance.Set(key, value)
public virtual IOwinContext Set<T>(
string key,
T value
)
public:
generic<typename T>
virtual IOwinContext^ Set(
String^ key,
T value
)
abstract Set :
key:string *
value:'T -> IOwinContext
override Set :
key:string *
value:'T -> IOwinContext
JScript does not support generic types and methods.
Type Parameters
- T
The generic Type.
Parameters
- key
Type: System.String
The key.
- value
Type: T
The value.
Return Value
Type: Microsoft.Owin.IOwinContext
The given key and value in the OWIN environment.
Implements
IOwinContext.Set<T>(String, T)