SessionExtensions Class¶
- Namespace
Microsoft.AspNetCore.Http
- Assemblies
- Microsoft.AspNetCore.Http.Extensions
Methods¶
-
Get
(Microsoft.AspNetCore.Http.ISession, System.String)¶ Return type: System.Byte<System.Byte>[] public static byte[] Get(this ISession session, string key)
-
GetInt32
(Microsoft.AspNetCore.Http.ISession, System.String)¶ Return type: System.Nullable<System.Int32> public static int ? GetInt32(this ISession session, string key)
-
GetString
(Microsoft.AspNetCore.Http.ISession, System.String)¶ Return type: System.String public static string GetString(this ISession session, string key)
-
SetInt32
(Microsoft.AspNetCore.Http.ISession, System.String, System.Int32)¶ public static void SetInt32(this ISession session, string key, int value)
-
SetString
(Microsoft.AspNetCore.Http.ISession, System.String, System.String)¶ public static void SetString(this ISession session, string key, string value)
-