共用方式為


SessionExtensions.GetString(ISession, String) 方法

定義

ISession 取得字串值。

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ GetString(Microsoft::AspNetCore::Http::ISession ^ session, System::String ^ key);
public static string GetString (this Microsoft.AspNetCore.Http.ISession session, string key);
public static string? GetString (this Microsoft.AspNetCore.Http.ISession session, string key);
static member GetString : Microsoft.AspNetCore.Http.ISession * string -> string
<Extension()>
Public Function GetString (session As ISession, key As String) As String

參數

session
ISession

ISession

key
String

要讀取的索引鍵。

傳回

適用於