Class PublishResult
Represents the result of publishing a document.
Inheritance
System.Object
Namespace: Umbraco.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class PublishResult : OperationResult<PublishResultType, IContent>
Constructors
View SourcePublishResult(EventMessages, IContent)
Initializes a new instance of the PublishResult class.
Declaration
public PublishResult(EventMessages eventMessages, IContent content)
Parameters
Type | Name | Description |
---|---|---|
EventMessages | eventMessages | |
IContent | content |
PublishResult(PublishResultType, EventMessages, IContent)
Initializes a new instance of the PublishResult class.
Declaration
public PublishResult(PublishResultType resultType, EventMessages eventMessages, IContent content)
Parameters
Type | Name | Description |
---|---|---|
PublishResultType | resultType | |
EventMessages | eventMessages | |
IContent | content |
Properties
View SourceContent
Gets the document.
Declaration
public IContent Content { get; }
Property Value
Type | Description |
---|---|
IContent |
InvalidProperties
Gets or sets the invalid properties, if the status failed due to validation.
Declaration
public IEnumerable<Property> InvalidProperties { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Property> |