HttpContext.Profile 屬性

定義

取得目前使用者設定檔的 ProfileBase 物件。Gets the ProfileBase object for the current user profile.

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

屬性值

ProfileBase

如果應用程式組態檔包含設定檔屬性的定義,則為 ProfileBase;否則為 nullA ProfileBase if the application configuration file contains a definition for the profile's properties; otherwise, null.

備註

屬性可用於 Profile 使用類型安全 API 來持續儲存結構化資料。A Profile property is used for persistent storage of structured data using a type-safe API. Profile 存取屬性但沒有值存在時,會傳回空的實例; null 不會傳回。When a Profile property is accessed but no value is present, an empty instance is returned; null is not returned.

適用於

另請參閱