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 元素(ASP.NET 设置架构)元素中的其他属性一样。 该请求返回的 PartitionResolverType 连接字符串将用于每个请求,以连接到请求其余部分的相应服务器位置。 如果连接字符串无效,ASP.NET 将引发与配置到服务器的连接字符串无效时引发的相同异常。
此属性用于在 SQL 或状态服务器模式下跨多个后端节点分区会话状态数据。