Class Script
Represents a Script file
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class Script : File, IRememberBeingDirty, ICanBeDirty, IFile, IAggregateRoot, IDeletableEntity, IEntity, IDeepCloneable
Constructors
Script(String)
Declaration
public Script(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Script(String, IContentSection)
Declaration
[Obsolete("This is no longer used and will be removed from the codebase in future versions")]
public Script(string path, IContentSection contentConfig)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | |
IContentSection | contentConfig |
Properties
HasIdentity
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 |
---|---|
System.Boolean |
Remarks
Overrides the default Entity identity check.