Class DocumentTypeSave
Model used to save a document type
Inheritance
System.Object
Namespace: Umbraco.Web.Models.ContentEditing
Assembly: Umbraco.Web.dll
Syntax
[DataContract(Name = "contentType", Namespace = "")]
public class DocumentTypeSave : ContentTypeSave<PropertyTypeBasic>, IValidatableObject
Properties
View SourceAllowedTemplates
The list of allowed templates to assign (template alias)
Declaration
[DataMember(Name = "allowedTemplates")]
public IEnumerable<string> AllowedTemplates { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
DefaultTemplate
The default template to assign (template alias)
Declaration
[DataMember(Name = "defaultTemplate")]
public string DefaultTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceValidate(ValidationContext)
Custom validation
Declaration
public override 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> |