View Source
Class ContentTypeSave
Abstract model used to save content types
Inheritance
System.Object
Assembly: Umbraco.Web.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 |
System.Collections.Generic.IEnumerable<System.Int32> |
|
View Source
CompositeContentTypes
Declaration
[DataMember(Name = "compositeContentTypes")]
public IEnumerable<string> CompositeContentTypes { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
HistoryCleanup
Declaration
[DataMember(Name = "historyCleanup")]
public HistoryCleanupViewModel HistoryCleanup { get; set; }
Property Value
View Source
IsContainer
Declaration
[DataMember(Name = "isContainer")]
public bool IsContainer { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
IsElement
Declaration
[DataMember(Name = "isElement")]
public bool IsElement { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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 |
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|