# RegexStreamNamespacePredicate.IsMatch(string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.regexstreamnamespacepredicate/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.regexstreamnamespacepredicate/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Predicates/RegexStreamNamespacePredicate.cs#L33)

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