SessionStateSection.PartitionResolverType 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定會話狀態的儲存位置。
public:
property System::String ^ PartitionResolverType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("partitionResolverType", DefaultValue="")]
public string PartitionResolverType { get; set; }
[<System.Configuration.ConfigurationProperty("partitionResolverType", DefaultValue="")>]
member this.PartitionResolverType : string with get, set
Public Property PartitionResolverType As String
屬性值
一個指定會話狀態要存放在哪裡的值,或是空字串(“”)。
- 屬性
備註
若 PartitionResolverType 屬性被指定,則忽略該 SqlConnectionString 性質與 StateConnectionString 屬性。 PartitionResolverType可以透過屬性鎖定LockAttributes,就像 sessionState Element(ASP.NET 設定結構)元素中的其他屬性一樣。 由 回 PartitionResolverType 傳的連接字串會用於每次請求,以連接至該請求的適當伺服器位置。 如果連線字串無效,ASP.NET 會拋出與伺服器連線字串無效時相同的例外。
此特性用於在 SQL 或狀態伺服器模式下,將會話狀態資料分割至多個後端節點。