共用方式為


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

屬性值

ProfileBase若應用程式設定檔包含設定檔屬性定義,則為 A;否則,為 null

備註

Profile屬性用於透過型別安全 API 來持久儲存結構化資料。 當 Profile 存取屬性但無值時,會回傳一個空實例; null 不會回傳。

適用於

另請參閱