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

如果應用程式組態檔包含設定檔屬性的定義,則為 ProfileBase;否則為 null

備註

Profile屬性是用於使用型別安全 API 持續儲存結構化資料。 Profile存取屬性但不存在任何值時,會傳回空的實例; null 不會傳回。

適用於

另請參閱