Search Results for

    Show / Hide Table of Contents
    View Source

    Class Script

    Represents a Script file

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    File
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class Script : File, IScript, IFile, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    Script(String)

    Declaration
    public Script(string path)
    Parameters
    Type Name Description
    System.String path
    View Source

    Script(String, Nullable<Func<File, String>>)

    Declaration
    public Script(string path, Func<File, string>? getFileContent)
    Parameters
    Type Name Description
    System.String path
    System.Nullable<Func<File, System.String>> getFileContent

    Properties

    View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • Script(String)
      • Script(String, Nullable<Func<File, String>>)
    • Properties
      • HasIdentity
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX