MobileControl.SavePrivateViewState MobileControl.SavePrivateViewState MobileControl.SavePrivateViewState MobileControl.SavePrivateViewState Method

定义

保存从持久性存储加载页面后出现的任何私有视图状态更改。 Saves any private view-state changes that have occurred since the page was loaded from persistence. 如果未进行任何更改,则此方法返回 null If no changes were made, this method returns null. 此 API 已过时。 This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站 For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected:
 virtual System::Object ^ SavePrivateViewState();
protected virtual object SavePrivateViewState ();
abstract member SavePrivateViewState : unit -> obj
override this.SavePrivateViewState : unit -> obj
Protected Overridable Function SavePrivateViewState () As Object

返回

包含已更改私有视图状态的对象。 An object containing the altered private view state.

注解

您可以重写此方法来存储私有视图状态。You can override this method to store a private view state. 除了与普通的视图状态一起保存的信息,ASP.NET 移动 Web 窗体存储信息,如在窗体进行分页。In addition to information saved with the ordinary view state, ASP.NET mobile Web Forms store information such as whether or not the form is paginated. 这添加信息存储在私有视图状态,并存储在客户端而不是在服务器上。This added information is stored in the private view state and is stored on the client rather than the server. 私有视图状态保存在优化的方式。A private view state is saved in an optimized manner. 默认行为,例如活动窗体,使第一个窗体永远不会包含在已保存的私有视图状态中。Default behavior, such as making the first form the active form, is never included in the saved private view state.

适用于

另请参阅