# RegexChannelNamespacePredicate.IsMatch(string)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.BroadcastChannel/SubscriberTable/Predicates/RegexChannelNamespacePredicate.cs#L34)

```csharp
public bool IsMatch(string streamNameSpace)
```

Defines if the consumer grain should subscribe to the specified namespace.

### Parameters

- `streamNameSpace` (`string`): The target stream namespace to check.

### Returns

`true`, if the grain should subscribe to the specified namespace; `false`, otherwise.
