PageLayout.Name Property

Definition

Gets the name of this PageLayout object.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

Property Value

String

The URL name for this PageLayout.

Exceptions

The current user does not have sufficient permissions to perform this action.

Remarks

The Name value is initialized when a PageLayout object is created, and cannot be modified.

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

Another way to set the Name property is to use the PageLayout.ListItem.File.MoveTo(string) operation.

You must call Update() after setting this property to save the changes.

The user must have edit permissions on the PageLayout object to set this value. The user must have view permissions on the PageLayout object to retrieve it initially and to get any of its property values.

Applies to