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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableMethodAttribute(Name := "EnsureSitePagesLibrary", ReturnObjectIdentity := True)> _
Public Function EnsureSitePagesLibrary As SPList
'Usage
Dim instance As SPListCollection
Dim returnValue As SPList
returnValue = instance.EnsureSitePagesLibrary()
[ClientCallableMethodAttribute(Name = "EnsureSitePagesLibrary", ReturnObjectIdentity = true)]
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.