PublishingPage.Name Property

Gets the URL name for this PublishingPage object.

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

public string Name { get; }

Property Value

Type: System.String
The URL name for this PublishingPage object.

The Name property is initialized when a PublishingPage is created (see [M:Microsoft.SharePoint.Publishing.PublishingPageCollection.Add(System.String,Microsoft.SharePoint.Publishing.PageLayout]) and cannot be modified.

If this property value is used in HTML to be rendered in a browser, you should encode the property value in HTML to avoid the possibility of scripting attacks.

The user must have View permissions on the PublishingPage to retrieve it and return its property values.