## GetService(*Type*) {#getservice}

Gets the requested service.

```csharp
public object GetService(Type serviceType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| serviceType | Type | The type of service to retrieve. |

### Return Value

An instance of the service if it could be found, or null if it could not be found

### See Also

* class [Configuration](../)
* namespace [Aspose.Html](../../../aspose.html/)
* assembly [Aspose.HTML](../../../)

---

## GetService<T>() {#getservice_1}

Gets the requested service.

```csharp
public T GetService<T>()
```

| Parameter | Description |
| --- | --- |
| T | The type of service to retrieve. |

### Return Value

An instance of the service if it could be found, or null if it could not be found

### See Also

* class [Configuration](../)
* namespace [Aspose.Html](../../../aspose.html/)
* assembly [Aspose.HTML](../../../)
