次の方法で共有


SessionExtensions.SetInt32(ISession, String, Int32) メソッド

定義

の int 値を設定します 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)

パラメーター

session
ISession

ISession

key
String

割り当てるキー。

value
Int32

代入する値。

適用対象