Class Script
Represents a Script file
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class Script : File, IScript, IFile, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceScript(string)
Declaration
public Script(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path |
Script(string, Func<File, string?>?)
Declaration
public Script(string path, Func<File, string?>? getFileContent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | |
| Func<File, string> | getFileContent |
Properties
View SourceHasIdentity
Indicates whether the current entity has an identity, which in this case is a path/name.
Declaration
public override bool HasIdentity { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Overrides the default Entity identity check.