Compartilhar via


SessionExtensions.SetString(ISession, String, String) Método

Definição

Define um String valor no ISession.

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

Parâmetros

session
ISession

O ISession.

key
String

A chave a ser atribuída.

value
String

O valor a atribuir.

Aplica-se a