SessionExtensions.GetInt32(ISession, String) Method

Definition

Gets an int value from ISession.

C#
public static int? GetInt32 (this Microsoft.AspNetCore.Http.ISession session, string key);

Parameters

session
ISession

The ISession.

key
String

The key to read.

Returns

Applies to

Produk Versi
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0