Populates a PageData object with given property values.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public void SetPropertyValues(
	PageData page,
	Dictionary<string, string> properties,
	PageProviderBase..::.PropertyValidator propertyValidator,
	bool makeReadOnly
)

Parameters

page
Type: EPiServer.Core..::.PageData
The page to poulate
properties
Type: System.Collections.Generic..::.Dictionary<(Of <(String, String>)>)
The properties to populate the page with. Should be key=property name and value=property value.
propertyValidator
Type: EPiServer.Core..::.PageProviderBase..::.PropertyValidator
delegate for property validation before assignment. If it returns true, property is assigned the value. If it returns false, value is not assigned. Pass in null if no validation is required.
makeReadOnly
Type: System..::.Boolean
If set to true the page is made read-only before returning.

Remarks

The property values is set only if the passed in PageData has the property specified. Call e.g. InitializePageData(PageData, String, String, Guid, PageReference, PageReference, IList<(Of <(String>)>)) to initialize PageData object with properties. PageLinkURL is ignored if present since that is created from PageLink and page type. To set linkurl, call property LinkURLafter call to SetProperties

See Also