共用方式為


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

要指派的值。

適用於