Share via


MobilePage.GetPrivateViewState(MobileControl) 方法

定義

擷取控制項的檢視狀態。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public:
 System::Object ^ GetPrivateViewState(System::Web::UI::MobileControls::MobileControl ^ ctl);
public object GetPrivateViewState (System.Web.UI.MobileControls.MobileControl ctl);
member this.GetPrivateViewState : System.Web.UI.MobileControls.MobileControl -> obj
Public Function GetPrivateViewState (ctl As MobileControl) As Object

參數

ctl
MobileControl

要擷取狀態的控制項。

傳回

與控制項關聯的 StateBag 物件。

備註

控件的檢視狀態是其所有非預設屬性值的匯總。

適用於

另請參閱