Method TryGetValue
TryGetValue(ISession, String, out Object)
Tries to get the value against the specified key from session.
Declaration
public static bool TryGetValue(this ISession session, string key, out object value)
Parameters
Type | Name | Description |
---|---|---|
ISession | session | The session object. |
System.String | key | Key against which the value is required. |
System.Object | value | The deserialized value against the key. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean value that specifies whether the operation was successful or not. |