Class ResourceHandlingOptions
Namespace: Aspose.Html.Saving
Assembly: Aspose.HTML.dll (25.2.0)
Represents resource handling options.
[ComVisible(true)]
public class ResourceHandlingOptions
Inheritance
object ← ResourceHandlingOptions
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Default
Gets or sets enum which represents default way of resources handling. Currently Aspose.Html.Saving.ResourceHandling.Save, Aspose.Html.Saving.ResourceHandling.Ignore and Aspose.Html.Saving.ResourceHandling.Embed values are supported. Default value is Aspose.Html.Saving.ResourceHandling.Save.
public ResourceHandling Default { get; set; }
Property Value
JavaScript
Gets or sets enum which represents the way scripts are handled. Currently Aspose.Html.Saving.ResourceHandling.Save, Aspose.Html.Saving.ResourceHandling.Ignore, Aspose.Html.Saving.ResourceHandling.Discard and Aspose.Html.Saving.ResourceHandling.Embed values are supported. Default value is Aspose.Html.Saving.ResourceHandling.Save.
public ResourceHandling JavaScript { get; set; }
Property Value
MaxHandlingDepth
Gets or sets maximum depth of pages which will be handled. Depth of 1 means that only pages directly referenced from the saved document will be handled. Setting this property to -1 will lead to handling of all pages. Default value is 0.
public int MaxHandlingDepth { get; set; }
Property Value
PageUrlRestriction
Gets or sets restriction applied to URLs of handled pages. Default value is Aspose.Html.Saving.UrlRestriction.RootAndSubFolders.
public UrlRestriction PageUrlRestriction { get; set; }
Property Value
ResourceUrlRestriction
Gets or sets restriction applied to URLs of handled resources such as css, js, images etc. Default value is Aspose.Html.Saving.UrlRestriction.SameHost.
public UrlRestriction ResourceUrlRestriction { get; set; }