HttpContext.Profile 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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 不會回傳。