View Source
Class ContentItemSave
A model representing a content item to be saved
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "content", Namespace = "")]
public class ContentItemSave : IContentSave<IContent>, IHaveUploadedFiles
Constructors
View Source
ContentItemSave()
Declaration
Properties
View Source
Action
Declaration
[DataMember(Name = "action", IsRequired = true)]
[Required]
public ContentSaveAction Action { get; set; }
Property Value
View Source
ContentTypeAlias
Declaration
[DataMember(Name = "contentTypeAlias", IsRequired = true)]
[Required(AllowEmptyStrings = false)]
public string ContentTypeAlias { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Id
Declaration
[DataMember(Name = "id", IsRequired = true)]
[Required]
public int Id { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
ParentId
Declaration
[DataMember(Name = "parentId", IsRequired = true)]
[Required]
public int ParentId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
PersistedContent
Declaration
[IgnoreDataMember]
public IContent PersistedContent { get; set; }
Property Value
View Source
TemplateAlias
The template alias to save
Declaration
[DataMember(Name = "templateAlias")]
public string TemplateAlias { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
UploadedFiles
Declaration
[IgnoreDataMember]
public List<ContentPropertyFile> UploadedFiles { get; }
Property Value
View Source
Variants
Declaration
[DataMember(Name = "variants", IsRequired = true)]
public IEnumerable<ContentVariantSave> Variants { get; set; }
Property Value
Explicit Interface Implementations
View Source
IContentSave<IContent>.PersistedContent
The real persisted content object - used during inbound model binding
Declaration
[IgnoreDataMember]
IContent IContentSave<IContent>.PersistedContent { get; set; }
Returns