# StreamIdentity

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/StreamIdentity.cs#L16)

```csharp
[Orleans.GenerateSerializer]
[Orleans.Immutable]
public sealed class StreamIdentity : IStreamIdentity
```

Stream identity contains the public stream information use to uniquely identify a stream. Stream identities are only unique per stream provider.

## Remarks

Use [StreamId](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/) where possible, instead.

## Constructors

- [StreamIdentity(Guid, string)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/constructors/constructor-system-guid-string-fcf28bc1/)

## Properties

- [Guid](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/properties/guid-e432a35c/)
- [Namespace](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/properties/namespace-ece23c5c/)

## Methods

- [Equals(object)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/methods/equals-object-352d5fc0/)
- [GetHashCode](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.streamidentity/methods/gethashcode-b843c3ad/)
