SP.PageType Enumeration

Applies to: SharePoint Foundation 2010

Page Type is a signed 1-byte integer that is used to represent the possible page types.

Values

Name

Description

invalid

Enumeration whose values specify a page that does not correspond to a list view or a list form. The value = -1.

defaultView

Enumeration whose values specify a page that is the default view for a list. The value = 0.

normalView

Enumeration whose values specify a page that is a list view and is not the default view for a list. The value = 1.

dialogView

Enumeration whose values specify a page suitable for display within a dialog box on a client computer. The value = 2.

view

Enumeration whose values specify a page that is a list view. The value = 3.

displayForm

Enumeration whose values specify a list form for displaying a list item. The value = 4.

displayFormDialog

Enumeration whose values specify a list form for displaying a list item, suitable for display within a dialog box on a client computer. The value = 5.

editForm

Enumeration whose values specify a list form for editing a list item. The value = 6.

editFormDialog

Enumeration whose values specify a list form for editing a list item, suitable for display within a dialog box on a client computer. The value = 7.

newForm

Enumeration whose values specify a list form for creating a new list item. The value = 8.

newFormDialog

Enumeration whose values specify a list form for creating a new list item, suitable for display within a dialog box on a client computer. The value = 9.

solutionForm

Enumeration whose values specify a list form for displaying or editing a list item and represented by a form template (.xsn) file. The value = 10.

pagE_MAXITEMS

Enumeration whose values specify the total number of valid page types. The value = 11.

Remarks

The reserved Page Type values are specified as follows.

Value

Description

-1

Does not correspond to a view or a form of a list.

0

Default view of the corresponding list. This view is displayed whenever this list is viewed without an explicit view being specified.

1

A view of the corresponding list, but not the default view.

2

This value is only used internally within implementation-specific code and is never stored in a database.

3

This value is only used internally within implementation-specific code and is never stored in a database.

4

A display form of a list, suitable for displaying a single list item in read-only mode.

5

This value is only used internally within implementation-specific code and is never stored in a database.

6

An edit form for a list, suitable for presenting UI to update the properties of a list item.

7

Used to represent edit forms of a list suitable for displaying in HTML file dialogs to a client application.

8

A new form for a list, suitable for presenting UI to create a new list item.

9

This value is from a previous implementation and is no longer valid.

10

This value is only used internally within implementation-specific code and is never stored in a database.

See Also

Reference

SP Namespace