共用方式為


BlogAdminWebPart.IListWebPart.PageType property

網頁組件的畫面類型。如果網頁組件會出現在表單上,然後將此設定到其中一個網頁。PAGE_EDITFORM,畫面類型。PAGE_NEWFORM,畫面類型。DISPLAYFORM。如果網頁組件會出現在檢視的頁面上,請設定此網頁。NORMALVIEW,畫面類型。PAGE_VIEW 或網頁。PAGE_DEFAULTVIEW (畫面類型。PAGE_DEFAULTVIEW 代表為其 SPList 的預設檢視此網頁組件)。實作是 IListWebPart。

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

Syntax

'宣告
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.None)> _
<WebBrowsableAttribute(False)> _
Private Property PageType As PAGETYPE
    Implements IListWebPart.PageType
    Get
    Set
'用途
Dim instance As BlogAdminWebPart
Dim value As PAGETYPE

value = CType(instance, IListWebPart).PageType

CType(instance, IListWebPart).PageType = value
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.None)]
[WebBrowsableAttribute(false)]
PAGETYPEIListWebPart.PageType { get; set; }

Property value

Type: Microsoft.SharePoint.PAGETYPE
網頁組件的畫面類型。

Implements

IListWebPart.PageType

請參閱

參照

BlogAdminWebPart class

BlogAdminWebPart members

Microsoft.SharePoint.WebPartPages namespace