ProfileBase.IsAnonymous 属性
定义
获取一个指示用户配置文件是否用于匿名用户的值。Gets a value indicating whether the user profile is for an anonymous user.
public:
property bool IsAnonymous { bool get(); };
public bool IsAnonymous { get; }
member this.IsAnonymous : bool
Public ReadOnly Property IsAnonymous As Boolean
属性值
如果用户配置文件是用于匿名用户,则为 true;否则为 false。true if the user profile is for an anonymous user; otherwise, false.
注解
使用 anonymousIdentification 配置节和用于指定配置文件属性的 添加 配置元素的 allowAnonymous 特性来启用对用户配置文件的匿名访问。Anonymous access to the user profile is enabled using the anonymousIdentification configuration section and the allowAnonymous attribute of the add configuration element used to specify profile properties.