---
title: "Taxonomy managers"
slug: "taxonomy-managers"
abstract: ""
---
# Taxonomy managers

Taxonomy managers are used to get, create, search, activate, and delete taxonomies. The following example demonstrates how to retrieve the `IChannelTaxonomyManager` in a Sitecore context:

```csharp
using Sitecore.Marketing.Taxonomy;

namespace Documentation.Samples
{
        class GetChannelTaxonomy
        {
                public void Example()
                {
                        var channelTaxonomyManager = Sitecore.DependencyInjection.ServiceLocator.ServiceProvider.GetTaxonomyManagerProvider().GetManager<IChannelTaxonomyManager>();
                }
        }
}

```

You can can also the extension methods under `Sitecore.Marketing.Taxonomy.Extensions` to retrieve a taxonomy manager. In the following example, the `IChannelTaxonomyManager` is retrieved using the `GetChannelManager()` method:

```csharp
using Sitecore.Marketing.Taxonomy;
using Sitecore.Marketing.Taxonomy.Extensions;

namespace Documentation.Samples
{
        class GetChannelTaxonomy
        {
                public void Example()
                {
                        var channelTaxonomyManager = Sitecore.DependencyInjection.ServiceLocator.ServiceProvider.GetTaxonomyManagerProvider().GetChannelManager();
                }
        }
}

```