> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/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

### &#x20;GetContainerContentsLog Extension

> [!NOTE]
>
> Extension method from `Microsoft.Extensions.DependencyInjection.Breakdance_Assemblies_ServiceCollectionExtensions`

#### 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`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.