# StreamProviderExtensions.GetStream(IStreamProvider, string, string)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Providers/IStreamProvider.cs)

```csharp
public static IAsyncStream<T> GetStream<T>(this IStreamProvider streamProvider, string ns, string id)
```

Gets the stream with the specified identity and namespace.

### Parameters

- `streamProvider` (`IStreamProvider`): The stream provider.
- `ns` (`string`): The namespace.
- `id` (`string`): The identifier.

### Returns

The stream.
