Class ContentCreateResultBase<TContent>
Represents the base result of a content creation operation.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
public abstract class ContentCreateResultBase<TContent> where TContent : class, IContentBase
Type Parameters
| Name | Description |
|---|---|
| TContent | The type of content being created, which must implement IContentBase. |
Constructors
View SourceContentCreateResultBase()
Declaration
protected ContentCreateResultBase()
Properties
View SourceContent
Gets the created content, or null if creation failed.
Declaration
public TContent? Content { get; init; }
Property Value
| Type | Description |
|---|---|
| TContent |
InvalidPropertyAliases
Gets the aliases of the properties that failed validation when publishing.
Declaration
public IEnumerable<string> InvalidPropertyAliases { get; init; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Remarks
Only populated when the operation included a publish that was blocked by invalid property values.
ValidationResult
Gets the validation result containing any validation errors that occurred during creation.
Declaration
public ContentValidationResult ValidationResult { get; init; }
Property Value
| Type | Description |
|---|---|
| ContentValidationResult |