Sdílet prostřednictvím


SessionExtensions.SetString(ISession, String, String) Metoda

Definice

String Nastaví hodnotu v .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)

Parametry

session
ISession

Hodnota ISession

key
String

Klíč, který chcete přiřadit.

value
String

Hodnota, kterou chcete přiřadit.

Platí pro