# ChannelNameToId(string)

> Closes a specific channel and all connections to that channel.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.MPE](/engine/6000.6/script-reference/unityeditor/mpe.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static int ChannelNameToId(string channelName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The ChannelName.

### Returns

| Type                                                       | Description    |
| ---------------------------------------------------------- | -------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The ChannelId. |
