Class PublishedStateAssessorExtensions
Extension methods for the IPublishedStateAssessor interface
Inheritance
System.Object
PublishedStateAssessorExtensions
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: 8.11.0Syntax
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.