请单击以进行评分并提供反馈
MSDN
MSDN Library
.NET 开发
先前版本
System.Web
HttpContext 类
 Profile 属性

  开启低带宽视图
此页面仅适用于
Microsoft Visual Studio 2005/.NET Framework 2.0

同时提供下列产品的其他版本:
.NET Framework 类库
HttpContext.Profile 属性

注意:此属性在 .NET Framework 2.0 版中是新增的。

获取当前用户配置文件的 ProfileBase 对象。

命名空间:System.Web
程序集:System.Web(在 system.web.dll 中)

Visual Basic(声明)
Public ReadOnly Property Profile As ProfileBase
Visual Basic(用法)
Dim instance As HttpContext
Dim value As ProfileBase

value = instance.Profile
C#
public ProfileBase Profile { get; }
C++
public:
property ProfileBase^ Profile {
    ProfileBase^ get ();
}
J#
/** @property */
public ProfileBase get_Profile ()
JScript
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
社区内容   什么是社区内容?
添加新内容 RSS  批注
Processing
© 2009 Microsoft Corporation 版权所有。 保留所有权利  |  商标  |  隐私权声明
Page view tracker