# TestClusterHostFactory.SerializeConfiguration(IConfiguration)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testclusterhostfactory/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testclusterhostfactory/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestClusterHostFactory.cs#L112-L115)

```csharp
public static string SerializeConfiguration(IConfiguration configuration)
```

Serializes configuration to a string.

### Parameters

- `configuration` (`IConfiguration`): The configuration.

### Returns

The serialized configuration.
