# StreamSubscription

Package: [Microsoft.Orleans.Streaming](/orleans/docs/api/csharp/microsoft.orleans.streaming/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Streaming) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Core/StreamSubscription.cs#L10)

```csharp
[Orleans.GenerateSerializer]
[Orleans.Immutable]
public sealed class StreamSubscription
```

Represents a subscription to a stream.

## Constructors

- [StreamSubscription(Guid, string, StreamId, GrainId)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.core.streamsubscription/constructors/constructor-system-guid-string-orleans-runtime-streamid-orleans-runtime-grainid-a9d6b0e5/)

## Properties

- [GrainId](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.core.streamsubscription/properties/grainid-15352d27/)
- [StreamId](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.core.streamsubscription/properties/streamid-e8cf0929/)
- [StreamProviderName](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.core.streamsubscription/properties/streamprovidername-bddc9dc6/)
- [SubscriptionId](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.core.streamsubscription/properties/subscriptionid-d89536f0/)
