View Source
Class CodeFileDisplay
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[DataContract(Name = "scriptFile", Namespace = "")]
public class CodeFileDisplay : INotificationModel, IValidatableObject
Constructors
View Source
CodeFileDisplay()
Declaration
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<Notification> Notifications { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Notification> |
|
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 |
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|