Indicates if the PageReference references a specific version or may be used to load any available version.Namespace: EPiServer.Core
Assembly: EPiServer (in EPiServer.dll) Version: 5.2.375.236
public bool IsAnyVersion()
Return Valuetrue if [is any version]; otherwise, false.
This method only returns true if the PageReference object was created via the is usually set via the constructor. Typically, that constructor is used when you want to load the latest version a page regardless if it's published or not. When a PageReference with IsAnyVersion is set to true is passed to GetPage(PageReference) the returned PageData object will be, in order of preference:
- The currently published version
- The latest saved version