Lists the published versions Default base class implementation has no versioning support so it uses GetLanguageBranches(PageReference) to get pages. If versioning is to be supported this method should be overriden.

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

Syntax

C#
public virtual PageVersionCollection ListPublishedVersions(
	PageReference pageLink
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The page link.

Return Value

All published versions for the page

Implements

IPageStore..::.ListPublishedVersions(PageReference)

Examples

The following code sample is an implementation of ListPublishedVersions() for XmlPageProvider.
CopyC#
public override PageVersionCollection ListPublishedVersions(PageReference pageLink)
{
    PageVersionCollection versions = new PageVersionCollection();
    foreach (PageVersion pv in ListVersions(pageLink))
    {
        if (pv.Status == VersionStatus.Published)
            versions.Add(pv);

    }
    return versions;
}

See Also