注意:此属性在 .NET Framework 2.0 版中是新增的。
获取当前用户配置文件的
ProfileBase 对象。
命名空间:System.Web
程序集:System.Web(在 system.web.dll 中)
Public ReadOnly Property Profile As ProfileBase
Dim instance As HttpContext
Dim value As ProfileBase
value = instance.Profile
public ProfileBase Profile { get; }
public:
property ProfileBase^ Profile {
ProfileBase^ get ();
}
/** @property */
public ProfileBase get_Profile ()
public function get Profile () : ProfileBase
属性值
如果应用程序配置文件包含配置文件的属性的定义,则为 ProfileBase;否则为 空引用(在 Visual Basic 中为 Nothing)。
通过类型安全 API,Profile 属性用于结构化数据的持久性存储。如果访问 Profile 属性时不存在任何值,则返回一个空实例;不返回 空引用(在 Visual Basic 中为 Nothing)。
Windows 98、Windows 2000 SP4、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。
.NET Framework
受以下版本支持:2.0