Class PublishedStateAssessorExtensions
Extension methods for the IPublishedStateAssessor interface
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public static class PublishedStateAssessorExtensions
Methods
IsPublished(IPublishedStateAssessor, IContent)
Determines whether the specified IContent instance currently is in a published state.
Declaration
public static bool IsPublished(this IPublishedStateAssessor assessor, IContent content)
Parameters
Type | Name | Description |
---|---|---|
IPublishedStateAssessor | assessor | The assessor that does the assessment. |
IContent | content | The content instance that should be assessed. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsPublished(IPublishedStateAssessor, IContent, PagePublishedStatus)
Determines whether the specified IContent instance currently is in a published state.
Declaration
public static bool IsPublished(this IPublishedStateAssessor assessor, IContent content, PagePublishedStatus condition)
Parameters
Type | Name | Description |
---|---|---|
IPublishedStateAssessor | assessor | The assessor that does the assessment. |
IContent | content | The content instance that should be assessed. |
PagePublishedStatus | condition | The conditions of how the assessment should be done. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remarks
This method is primarily here for legacy reason and it is encouraged to use the IsPublished(IContent, PublishedStateCondition) overload instead.