## Configuration class

表示用于设置应用程序环境设置的配置上下文对象。

```csharp
public class Configuration : IServiceContainer
```

## 构造函数

| 姓名 | 描述 |
| --- | --- |
| [Configuration](configuration/)() | 初始化一个新的实例`Configuration`类. |

## 特性

| 姓名 | 描述 |
| --- | --- |
| [Security](../../aspose.html/configuration/security/) { get; set; } | 获取或设置配置的沙盒标志。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| [AddService&lt;TService&gt;](../../aspose.html/configuration/addservice/)(TService) | 将指定的服务添加到配置中。 |
| [Dispose](../../aspose.html/configuration/dispose/)() | 执行与释放、释放或重置非托管资源相关的应用程序定义的任务。 |
| [GetService&lt;TService&gt;](../../aspose.html/configuration/getservice/)() | 获取请求的服务。 |

### 也可以看看

* interface [IServiceContainer](../../aspose.html.services/iservicecontainer/)
* 命名空间 [Aspose.Html](../../aspose.html/)
* 部件 [Aspose.HTML](../../)


