Class PublishedStateAssessorExtensions
Extension methods for the IPublishedStateAssessor interface
Inheritance
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class PublishedStateAssessorExtensions : Object
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.