PublishingPageCollection.PubWeb property
Gets the PublishingWeb object that contains this PublishingWeb object.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public ReadOnly Property PubWeb As PublishingWeb
Get
'Usage
Dim instance As PublishingPageCollection
Dim value As PublishingWeb
value = instance.PubWeb
public PublishingWeb PubWeb { get; }
Property value
Type: Microsoft.SharePoint.Publishing.PublishingWeb
The PublishingWeb object that contains this PublishingPageCollection object.
Remarks
The publishing web is the parent web of the page list that populates this PublishingPageCollection object. It should not be a null reference (Nothing in Visual Basic).
See also
Reference
PublishingPageCollection class