WebPart.IsClosed 屬性
取得值,指定網頁組件目前在 [網頁組件] 頁面上是否關閉。
命名空間: Microsoft.SharePoint.Client.WebParts
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public ReadOnly Property IsClosed As Boolean
Get
'用途
Dim instance As WebPart
Dim value As Boolean
value = instance.IsClosed
public bool IsClosed { get; }
屬性值
類型:System.Boolean
傳回Booleantrue如果網頁組件目前已關閉網頁組件頁面。否則,傳回false。
備註
如果已關閉true,網頁組件。網頁組件關閉時,不會顯示在頁面上,並必須不參與以正常方式轉譯] 頁面。預設值是false。
OpenWebPart 方法會開啟 [網頁組件。如果目前的使用者不具有修改網頁組件的權限,伺服器必須略過這個方法通話。
CloseWebPart 方法會關閉 [網頁組件。如果已經關閉網頁組件,這個方法沒有作用。如果目前的使用者不具有修改網頁組件的權限,伺服器必須略過這個方法通話。