Share via


BlogAdminWebPart.IListWebPart.PageType property

The web part's PAGETYPE. If the web part will appear on a form, then set this to one of PAGETYPE.PAGE_EDITFORM, PAGETYPE.PAGE_NEWFORM, PAGETYPE.DISPLAYFORM. If the web part will appear on a page as a view, then set this to PAGETYPE.NORMALVIEW, PAGETYPE.PAGE_VIEW, or PAGETYPE.PAGE_DEFAULTVIEW (PAGETYPE.PAGE_DEFAULTVIEW denotes this web part as being the default view for its SPList). Implementation is for IListWebPart.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.None)> _
<WebBrowsableAttribute(False)> _
Private Property PageType As PAGETYPE
    Implements IListWebPart.PageType
    Get
    Set
'Usage
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
The web part's PAGETYPE.

Implements

IListWebPart.PageType

See also

Reference

BlogAdminWebPart class

BlogAdminWebPart members

Microsoft.SharePoint.WebPartPages namespace