通过


HttpContext.Profile 属性

定义

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

public:
 property System::Web::Profile::ProfileBase ^ Profile { System::Web::Profile::ProfileBase ^ get(); };
public System.Web.Profile.ProfileBase Profile { get; }
member this.Profile : System.Web.Profile.ProfileBase
Public ReadOnly Property Profile As ProfileBase

属性值

如果应用程序配置文件包含配置文件属性的定义,则为 A ProfileBase ;否则为 null

注解

属性 Profile 用于使用类型安全 API 持久存储结构化数据。 Profile当访问属性但不存在任何值时,将返回空实例;null不返回。

适用于

另请参阅