View Source
Class CodeFileDisplay
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class CodeFileDisplay : object, INotificationModel
Constructors
View Source
CodeFileDisplay()
Declaration
Properties
View Source
Content
Declaration
public string Content { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
FileType
Declaration
public string FileType { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Id
Declaration
public string Id { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Notifications
Declaration
public List<BackOfficeNotification> Notifications { get; }
Property Value
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
public string Path { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Snippet
Declaration
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
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 |
ValidationContext |
validationContext |
|
Returns
Type |
Description |
IEnumerable<ValidationResult> |
|