Compartilhar via


SessionExtensions.SetInt32(ISession, String, Int32) Método

Definição

Define um valor int no ISession.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetInt32(Microsoft::AspNetCore::Http::ISession ^ session, System::String ^ key, int value);
public static void SetInt32 (this Microsoft.AspNetCore.Http.ISession session, string key, int value);
static member SetInt32 : Microsoft.AspNetCore.Http.ISession * string * int -> unit
<Extension()>
Public Sub SetInt32 (session As ISession, key As String, value As Integer)

Parâmetros

session
ISession

O ISession.

key
String

A chave a ser atribuída.

value
Int32

O valor a atribuir.

Aplica-se a