Search Results for

    Show / Hide Table of Contents
    View Source

    Class CodeFileDisplay

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "scriptFile", Namespace = "")]
    public class CodeFileDisplay : INotificationModel, IValidatableObject

    Constructors

    View Source

    CodeFileDisplay()

    Declaration
    public CodeFileDisplay()

    Properties

    View Source

    Content

    Declaration
    [DataMember(Name = "content", IsRequired = true)]
    public string Content { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    FileType

    Declaration
    [DataMember(Name = "fileType", IsRequired = true)]
    public string FileType { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Id

    Declaration
    [DataMember(Name = "id")]
    public string Id { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Name

    Declaration
    [DataMember(Name = "name", IsRequired = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Notifications

    Declaration
    public List<BackOfficeNotification> Notifications { get; }
    Property Value
    Type Description
    List<BackOfficeNotification>
    View Source

    Path

    Path represents the path used by the backoffice tree For files stored on disk, this is a URL encoded, comma separated path to the file, always starting with -1. -1,Partials,Parials%2FFolder,Partials%2FFolder%2FFile.cshtml

    Declaration
    [DataMember(Name = "path")]
    public string Path { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Snippet

    Declaration
    [DataMember(Name = "snippet")]
    public string Snippet { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    VirtualPath

    VirtualPath is the path to the file on disk /views/partials/file.cshtml

    Declaration
    [DataMember(Name = "virtualPath", IsRequired = true)]
    public string VirtualPath { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    Validate(ValidationContext)

    Some custom validation is required for valid file names

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext
    Returns
    Type Description
    IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • CodeFileDisplay()
    • Properties
      • Content
      • FileType
      • Id
      • Name
      • Notifications
      • Path
      • Snippet
      • VirtualPath
    • Methods
      • Validate(ValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX