Class Configuration
Namespace: Aspose.Html
Assembly: Aspose.HTML.dll (25.2.0)
Represents the configuration context object that is used to set up the environment settings for the application.
[ComVisible(true)]
public class Configuration : IServiceProvider, IDisposable
Inheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Configuration()
Initializes a new instance of the Aspose.Html.Configuration class.
public Configuration()
Properties
Security
Gets or sets the sandboxing flag of the configuration.
public Sandbox Security { get; set; }
Property Value
Methods
Create()
Create and configure the instance of Configuration object.
public static Configuration Create()
Returns
The instance of Configuration object.
Create(Action<iconfigurationbuilder>)
Create and configure the instance of Configuration object.
public static Configuration Create(Action<iconfigurationbuilder> configure)
Parameters
configure
Action<IConfigurationBuilder>
The configuration builder
Returns
The instance of Configuration object.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetService(Type)
Gets the requested service.
public object GetService(Type serviceType)
Parameters
serviceType
Type
The type of service to retrieve.
Returns
An instance of the service if it could be found, or
GetService<t>()
Gets the requested service.
public T GetService<t>()
Returns
T
An instance of the service if it could be found, or
Type Parameters
T
The type of service to retrieve. </t></iconfigurationbuilder>