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 或状态服务器模式下跨多个后端节点对会话状态数据进行分区。

适用于