Class ClientResourceSettings
Required client resource settings
Inheritance
Implements
Namespace: EPiServer.Framework.Web.Resources
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public class ClientResourceSettings : Object, IEquatable<ClientResourceSettings>
Constructors
ClientResourceSettings(String)
Initializes a new instance of the Client
Declaration
public ClientResourceSettings(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name. |
Properties
Area
Gets or sets the area where required client resource should be rendered.
Declaration
public string Area { get; }
Property Value
Type | Description |
---|---|
System. |
The rendering area. |
Name
Gets or sets the name of required client resource.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
The name. |
ResourceTypes
Gets or sets the required client resource types.
Declaration
public IEnumerable<ClientResourceType> ResourceTypes { get; }
Property Value
Type | Description |
---|---|
System. |
The resource types. |
Methods
AtArea(String)
Requires to place client resource at specified rendering area.
Declaration
public ClientResourceSettings AtArea(string renderingArea)
Parameters
Type | Name | Description |
---|---|---|
System. |
renderingArea | The rendering area. |
Returns
Type | Description |
---|---|
Client |
AtFooter()
Requires to place client resource at default rendering area Footer.
Declaration
public ClientResourceSettings AtFooter()
Returns
Type | Description |
---|---|
Client |
AtHeader()
Requires to place client resource at default rendering area Header.
Declaration
public ClientResourceSettings AtHeader()
Returns
Type | Description |
---|---|
Client |
Equals(ClientResourceSettings)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ClientResourceSettings other)
Parameters
Type | Name | Description |
---|---|---|
Client |
other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System. |
true if the current object is equal to the |
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj | The System. |
Returns
Type | Description |
---|---|
System. |
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
OfTypes(IEnumerable<ClientResourceType>)
Requires client resources of specified types. Does not change settings if specified type list are null or empty colection.
Declaration
public ClientResourceSettings OfTypes(IEnumerable<ClientResourceType> requiredTypes)
Parameters
Type | Name | Description |
---|---|---|
System. |
requiredTypes | The required types of the client resources. |
Returns
Type | Description |
---|---|
Client |
ScriptsOnly()
Requires script resources only.
Declaration
public ClientResourceSettings ScriptsOnly()
Returns
Type | Description |
---|---|
Client |
StylesOnly()
Requires CSS resources only.
Declaration
public ClientResourceSettings StylesOnly()
Returns
Type | Description |
---|---|
Client |