Class Configuration

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

objectConfiguration

Implements

IServiceProvider, IDisposable

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

Sandbox

Methods

Create()

Create and configure the instance of Configuration object.

public static Configuration Create()

Returns

Configuration

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&gt;

The configuration builder

Returns

Configuration

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

object

An instance of the service if it could be found, or null if it could not be found

GetService<t>()

Gets the requested service.

public T GetService<t>()

Returns

T

An instance of the service if it could be found, or null if it could not be found

Type Parameters

T

The type of service to retrieve. </t></iconfigurationbuilder>