Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Interface IPublishedStateAssessor

Describes an object that can be used to assess if a content item currently is in a published state.

Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface IPublishedStateAssessor

Methods

IsPublished(IContent, PublishedStateCondition)

Determines whether the specified IContent instance currently is in a published state using the provided conditions.

Declaration
bool IsPublished(IContent content, PublishedStateCondition condition)
Parameters
Type Name Description
IContent content

The content instance that should be assessed.

PublishedStateCondition condition

The conditions of how the assessment should be done.

Returns
Type Description
System.Boolean

true if the content item is published; otherwise false.

Extension Methods