Class ClientResourceElement
Client resource definition
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Shell.Configuration
Assembly: EPiServer.Shell.dll
Version: 10.10.4Syntax
public class ClientResourceElement : IEquatable<ClientResourceElement>
Constructors
ClientResourceElement()
Initializes a new instance of the ClientResource class.
Declaration
public ClientResourceElement()
ClientResourceElement(String, String)
Initializes a new instance of the ClientResource class.
Declaration
public ClientResourceElement(string path, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path to the resource. |
System.String | name | The client resource name. |
Properties
Dependencies
Gets or sets the names of other client resources that current resource depends on.
Declaration
public List<ClientResourceReference> Dependencies { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ClientResourceReference> | The dependencies. |
IsMinified
Gets or sets a value indicating whether this resource is already minified.
Declaration
public bool IsMinified { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Location
Obsolete, use Name property instead. Location stays here for backward compatibility.
Declaration
public string Location { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the client resource name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Path
Gets or sets the path to the resource
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
If the path is relative it will be autoresolved to the modules path
ResourceType
Gets or sets resource type
Declaration
public ClientResourceType ResourceType { get; set; }
Property Value
Type | Description |
---|---|
ClientResourceType |
SortIndex
Gets or sets the sort index, use this if you have dependencies between your resources.
Declaration
public int SortIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(ClientResourceElement)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ClientResourceElement other)
Parameters
Type | Name | Description |
---|---|---|
ClientResourceElement | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the |
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | The |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |