# StreamId

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

```csharp
[Orleans.Immutable]
[Orleans.GenerateSerializer]
public readonly struct StreamId : IComparable<StreamId>, IEquatable<StreamId>, IFormattable, ISpanFormattable, ISerializable
```

Identifies a Stream within a provider

## Properties

- [FullKey](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/properties/fullkey-322710ac/)
- [Key](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/properties/key-36a7147f/)
- [Namespace](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/properties/namespace-a6d7e40f/)

## Methods

- [CompareTo(StreamId)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/compareto-orleans-runtime-streamid-3568ef20/)
- [Create(IStreamIdentity)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/create-orleans-streams-istreamidentity-7b4d0026/)
- [Create(ReadOnlySpan&lt;byte&gt;, ReadOnlySpan&lt;byte&gt;)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/create-system-readonlyspan-byte-system-readonlyspan-byte-ded9f2ed/)
- [Create(string, Guid)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/create-string-system-guid-39c47a07/)
- [Create(string, long)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/create-string-long-0d3b61c2/)
- [Create(string, string)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/create-string-string-a59c031f/)
- [Equals(StreamId)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/equals-orleans-runtime-streamid-43653556/)
- [Equals(object?)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/equals-object-nullable-24080214/)
- [GetHashCode](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/gethashcode-64c914e6/)
- [GetKeyAsString](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/getkeyasstring-89b94235/)
- [GetNamespace](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/getnamespace-042193ef/)
- [GetObjectData(SerializationInfo, StreamingContext)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/getobjectdata-system-runtime-serialization-serializationinfo-system-runtime-seri-bd959eb5/)
- [Parse(ReadOnlySpan&lt;byte&gt;)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/parse-system-readonlyspan-byte-bdb7e483/)
- [ToString](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/tostring-c3c2a2c7/)
- [operator ==(StreamId, StreamId)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/op-equality-orleans-runtime-streamid-orleans-runtime-streamid-f2ddaa09/)
- [operator !=(StreamId, StreamId)](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/methods/op-inequality-orleans-runtime-streamid-orleans-runtime-streamid-50444c4d/)
