Sitecore.Foundation.Assets.Models.Asset.Asset C# (CSharp) Method

Asset() public method

public Asset ( AssetType type, ScriptLocation location, string file = null, string inline = null, string site = null ) : System
type AssetType
location ScriptLocation
file string
inline string
site string
return System
    public Asset(AssetType type, ScriptLocation location, string file = null, string inline = null, string site = null)
    {
      this.Type = type;
      this.File = file;
      this.Location = location;
      this.Inline = inline;
      if (!string.IsNullOrEmpty(inline))
      {
        this.AddOnceToken = inline.GetHashCode().ToString();
      }
      this.Site = site;
    }