DefaultProfile 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在未定义配置文件属性时表示用户配置文件实例。
public ref class DefaultProfile : System::Web::Profile::ProfileBase
public class DefaultProfile : System.Web.Profile.ProfileBase
type DefaultProfile = class
inherit ProfileBase
Public Class DefaultProfile
Inherits ProfileBase
- 继承
注解
DefaultProfile ASP.NET 使用 类在启用配置文件功能但未定义任何属性时返回用户配置文件的默认实例。
构造函数
| DefaultProfile() |
创建 DefaultProfile 类的新实例。 |
属性
| Context |
获取关联的设置上下文。 (继承自 SettingsBase) |
| IsAnonymous |
获取一个指示用户配置文件是否用于匿名用户的值。 (继承自 ProfileBase) |
| IsDirty |
获取一个值,该值表明是否修改了任何配置文件属性。 (继承自 ProfileBase) |
| IsSynchronized |
获取一个值,该值指示访问对象是否同步(线程安全)。 (继承自 SettingsBase) |
| Item[String] |
获取或设置按属性名进行索引的配置文件属性值。 (继承自 ProfileBase) |
| LastActivityDate |
获取最近一次读取或修改配置文件的日期和时间。 (继承自 ProfileBase) |
| LastUpdatedDate |
获取最近一次修改配置文件的日期和时间。 (继承自 ProfileBase) |
| Properties |
获取设置属性的集合。 (继承自 SettingsBase) |
| PropertyValues |
获取设置属性值的集合。 (继承自 SettingsBase) |
| Providers |
获取设置提供程序的集合。 (继承自 SettingsBase) |
| UserName |
获取该配置文件的用户名。 (继承自 ProfileBase) |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。 (继承自 Object) |
| GetProfileGroup(String) |
获取按组名标识的属性组。 (继承自 ProfileBase) |
| GetPropertyValue(String) |
获取配置文件属性的值。 (继承自 ProfileBase) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| Initialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection) |
初始化 SettingsBase 对象使用的内部属性。 (继承自 SettingsBase) |
| Initialize(String, Boolean) |
初始化当前用户的配置文件属性值和信息。 (继承自 ProfileBase) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。 (继承自 Object) |
| Save() |
用已更改的配置文件属性值更新配置文件数据源。 (继承自 ProfileBase) |
| SetPropertyValue(String, Object) |
设置配置文件属性的值。 (继承自 ProfileBase) |
| ToString() |
返回表示当前对象的字符串。 (继承自 Object) |