共用方式為


SPWebService.ViewStateOnServer property

預設值設為 true,來檢視狀態會儲存在速度快取。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property ViewStateOnServer As Boolean
    Get
    Set
'用途
Dim instance As SPWebService
Dim value As Boolean

value = instance.ViewStateOnServer

instance.ViewStateOnServer = value
public bool ViewStateOnServer { get; set; }

Property value

Type: System.Boolean
布林值,決定是否要儲存在伺服器上的 [狀態] 頁面上檢視。當設為 false 的檢視狀態會下載頁面,但每個文章與上傳。

請參閱

參照

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace