> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ServiceCollection

> Extension methods for ServiceCollection from Microsoft.Extensions.DependencyInjection.Abstractions

## Definition

**Assembly:** Microsoft.Extensions.DependencyInjection.Abstractions.dll

**Namespace:** Microsoft.Extensions.DependencyInjection

## Syntax

```csharp theme={"dark"}
Microsoft.Extensions.DependencyInjection.ServiceCollection
```

## Summary

This type is defined in Microsoft.Extensions.DependencyInjection.Abstractions.

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.servicecollection) for more information about the rest of the API.

## Methods

### <Icon icon="puzzle-piece" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetContainerContentsLog <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.Extensions.DependencyInjection.Breakdance_Assemblies_ServiceCollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static string GetContainerContentsLog(Microsoft.Extensions.DependencyInjection.ServiceCollection collection)
```

#### Parameters

| Name         | Type                                                         | Description |
| ------------ | ------------------------------------------------------------ | ----------- |
| `collection` | `Microsoft.Extensions.DependencyInjection.ServiceCollection` | -           |

#### Returns

Type: `string`
