SessionExtensions.SetString(ISession, String, String) 方法

定义

在 中ISession设置值String

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)

参数

session
ISession

ISession

key
String

要分配的键。

value
String

要指派的值。

适用于