Share via


SPListCollection.EnsureSitePagesLibrary method

A list that is designated as a default location for wiki pages.

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

Syntax

'Declaration
Public Function EnsureSitePagesLibrary As SPList
'Usage
Dim instance As SPListCollection
Dim returnValue As SPList

returnValue = instance.EnsureSitePagesLibrary()
public SPList EnsureSitePagesLibrary()

Return value

Type: Microsoft.SharePoint.SPList
A SPList object designated as a default location for wiki pages.

Remarks

If this list does not exist one is created and returned. If multiple such lists exist only one is returned.

See also

Reference

SPListCollection class

SPListCollection members

Microsoft.SharePoint namespace