Class DocumentTypeSave
Model used to save a document type
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.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.Nullable<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 |
---|---|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |