C# Class EPiUtilities.Extensions.PageReferenceExtensions

Extension methods for PageReference.
Mostrar archivo Open project: JohannesOstensjo/EPiUtilities

Public Methods

Method Description
Children ( this reference ) : PageDataCollection

Returns the children of the referenced page. Returns an empty collection if the reference is not resolvable.

ChildrenForVisitor ( this reference ) : PageDataCollection

Returns the children of the referenced page filtered for visitor. Returns an empty collection if the reference is not resolvable.

IsNullOrEmpty ( this reference ) : bool

Checks whether the reference is null or empty. Uses PageReferences own static method.

IsResolvable ( this reference ) : bool

Returns true if the reference can be resolved to a PageData.

ToPageData ( this reference ) : PageData

Returns the PageData this reference points to, or null if the reference is invalid.

Method Details

Children() public static method

Returns the children of the referenced page. Returns an empty collection if the reference is not resolvable.
public static Children ( this reference ) : PageDataCollection
reference this
return PageDataCollection

ChildrenForVisitor() public static method

Returns the children of the referenced page filtered for visitor. Returns an empty collection if the reference is not resolvable.
public static ChildrenForVisitor ( this reference ) : PageDataCollection
reference this
return PageDataCollection

IsNullOrEmpty() public static method

Checks whether the reference is null or empty. Uses PageReferences own static method.
public static IsNullOrEmpty ( this reference ) : bool
reference this
return bool

IsResolvable() public static method

Returns true if the reference can be resolved to a PageData.
public static IsResolvable ( this reference ) : bool
reference this
return bool

ToPageData() public static method

Returns the PageData this reference points to, or null if the reference is invalid.
public static ToPageData ( this reference ) : PageData
reference this
return PageData