SessionStateSection.UseHostingIdentity 属性

定义

获取或设置一个值,该值指定会话状态是在可用时使用客户端模拟,还是始终恢复为承载标识。Gets or sets a value specifying the whether the session state will use client impersonation when available, or will always revert to the hosting identity.

public:
 property bool UseHostingIdentity { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("useHostingIdentity", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool UseHostingIdentity { get; set; }
[<System.Configuration.ConfigurationProperty("useHostingIdentity", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.UseHostingIdentity : bool with get, set
Public Property UseHostingIdentity As Boolean

属性值

Boolean

如果 Web 应用程序应恢复为承载标识,则为 true;否则为 falsetrue if Web application should revert to hosting identity; otherwise, false. 默认值为 trueThe default value is true.

属性

适用于