Share via


PublishingPage.Name Property

Gets the URL name for this PublishingPage object.

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

Syntax

'Declaration
Public ReadOnly Property Name As String
    Get
'Usage
Dim instance As PublishingPage
Dim value As String

value = instance.Name
public string Name { get; }

Property Value

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

Remarks

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.

See Also

Reference

PublishingPage Class

PublishingPage Members

Microsoft.SharePoint.Publishing Namespace