Class ResourceHolder
Image resource holder
Inheritance
System.Object
ResourceHolder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class ResourceHolder
Constructors
ResourceHolder(Cache)
Initializes a new instance of the ResourceHolder class
Declaration
public ResourceHolder(Cache page)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Caching.Cache | page | The cahe |
Properties
AutoCleanUpCacheExpiration
Gets or sets the auto cache clean.
Declaration
public TimeSpan AutoCleanUpCacheExpiration { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The autocleanup cache expiration. |
AutoTempFileCleanUp
Gets or sets a value indicating whether the temporary file should be clean.
Declaration
public bool AutoTempFileCleanUp { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The auto temp file cleanup. |
OutputFolder
Gets or sets path to the output folder.
Declaration
public string OutputFolder { get; set; }
Property Value
Type | Description |
---|---|
System.String | The autocleanup cache expiration. |
OutputFormat
Gets or sets output format.
Declaration
public ResourceOutputFormat OutputFormat { get; set; }
Property Value
Type | Description |
---|---|
ResourceOutputFormat | The output format. |
RHCache
Gets or sets the resource holder cache
Declaration
public Cache RHCache { get; set; }
Property Value
Type | Description |
---|---|
System.Web.Caching.Cache | The resource holder cache. |
Methods
AddResource(IResourceInfo)
Adds the specified resource to the ResourceHolder
Declaration
public string AddResource(IResourceInfo resInfo)
Parameters
Type | Name | Description |
---|---|---|
IResourceInfo | resInfo | The resource information |
Returns
Type | Description |
---|---|
System.String | This method returns string value |
GetHandlerUrl(IResourceInfo)
Used to get the handler URL
Declaration
public string GetHandlerUrl(IResourceInfo srcInfo)
Parameters
Type | Name | Description |
---|---|---|
IResourceInfo | srcInfo | The resource information |
Returns
Type | Description |
---|---|
System.String | This method returns string value |
GetResourceUrl(IResourceInfo)
Used to return a URL reference to an embedded resource.
Declaration
public string GetResourceUrl(IResourceInfo resInfo)
Parameters
Type | Name | Description |
---|---|---|
IResourceInfo | resInfo | The resource information |
Returns
Type | Description |
---|---|
System.String | This method returns string value |