Walter.Web.FireWall
TryGetFromSession<T> Method
Walter.Web.FireWall Assembly > Walter.Web.FireWall Namespace > IUserIdentity Interface : TryGetFromSession<T> Method
The type to populate
The key to use.
The data to convert into.
Tries the get a type of T from the users session.
Syntax
bool TryGetFromSession<T>( 
   string key,
   out T? data
)
where T: class

Parameters

key
The key to use.
data
The data to convert into.

Type Parameters

T
The type to populate

Return Value

true if successful, false otherwise.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IUserIdentity Interface
IUserIdentity Members