Class PublishedStateAssessor
Inheritance
System.Object
PublishedStateAssessor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7Syntax
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 |
|