View Source
Class ContentTypeSave
Abstract model used to save content types
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "contentType", Namespace = "")]
public abstract class ContentTypeSave : ContentTypeBasic, IValidatableObject
Constructors
View Source
ContentTypeSave()
Declaration
protected ContentTypeSave()
Properties
View Source
AllowAsRoot
Declaration
[DataMember(Name = "allowAsRoot")]
public bool AllowAsRoot { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
AllowedContentTypes
Declaration
[DataMember(Name = "allowedContentTypes")]
public IEnumerable<int> AllowedContentTypes { get; set; }
Property Value
Type |
Description |
IEnumerable<System.Int32> |
|
View Source
CompositeContentTypes
Declaration
[DataMember(Name = "compositeContentTypes")]
public IEnumerable<string> CompositeContentTypes { get; set; }
Property Value
Type |
Description |
IEnumerable<System.String> |
|
View Source
HistoryCleanup
Declaration
[DataMember(Name = "historyCleanup")]
public HistoryCleanupViewModel HistoryCleanup { get; set; }
Property Value
Methods
View Source
Validate(ValidationContext)
Declaration
public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type |
Name |
Description |
System.ComponentModel.DataAnnotations.ValidationContext |
validationContext |
|
Returns
Type |
Description |
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|