Compartilhar via


IOwinContext.Get<T> Method (String)

 

Gets a value from the OWIN environment, or returns default(T) if not present.

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

Syntax

T Get<T>(
    string key
)
generic<typename T>
T Get(
    String^ key
)
abstract Get<'T> : 
        key:string -> 'T
Function Get(Of T) (
    key As String
) As T

Parameters

Return Value

Type: T

The value with the specified key or the default(T) if not present.

Type Parameters

  • T
    The type of the value.

See Also

IOwinContext Interface
Microsoft.Owin Namespace

Return to top