共用方式為


SessionStateSection.PartitionResolverType 屬性

定義

取得或設定值,指定儲存工作階段狀態的位置。

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 元素內的其他屬性一樣, (ASP.NET Settings Schema) 元素。 所 PartitionResolverType 傳回的連接字串將會用於每個要求,以連線到適當的伺服器位置,以取得要求的其餘部分。 如果連接字串無效,ASP.NET 將會擲回與伺服器設定的連接字串無效時所擲回的相同例外狀況。

當處於 SQL 或狀態伺服器模式時,這個屬性可用來分割多個後端節點的會話狀態資料。

適用於