Class PublishedStateAssessor
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public static class PublishedStateAssessor
Methods
IsPublished(IContent)
Determines whether the specified IContent instance currently is in a published state.
Declaration
public static bool IsPublished(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content instance that should be assessed. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsPublished(IContent, PagePublishedStatus)
Determines whether the specified IContent instance currently is in a published state using the provided conditions.
Declaration
public static bool IsPublished(IContent content, PagePublishedStatus condition)
Parameters
Type | Name | Description |
---|---|---|
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 |
|
IsPublished(IContent, PublishedStateCondition)
Determines whether the specified IContent instance currently is in a published state using the provided conditions.
Declaration
public static 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 |
|