Interface IPublishStatusQueryService
Verifies the published status of documents.
Namespace: Umbraco.Cms.Core.Services.Navigation
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishStatusQueryServiceMethods
View SourceHasPublishedAncestorPath(Guid)
Verifies if a document has a published ancestor path (i.e. all ancestors are themselves published in at least one culture).
Declaration
bool HasPublishedAncestorPath(Guid documentKey)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | documentKey | The document's key. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if document has a published ancestor path. | 
IsDocumentPublished(Guid, String)
Checks if a document is published in a specific culture.
Declaration
bool IsDocumentPublished(Guid documentKey, string culture)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | documentKey | The document's key. | 
| System.String | culture | The culture. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if document is published in the specified culture. | 
IsDocumentPublishedInAnyCulture(Guid)
Checks if a document is published in any culture.
Declaration
virtual bool IsDocumentPublishedInAnyCulture(Guid documentKey)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | documentKey | The document's key. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if document has any published culture. |