# StreamId.Create(string?, Guid)

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

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/StreamId.cs)

```csharp
public static StreamId Create(string? ns, Guid key)
```

Initializes a new instance of the [StreamId](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamid/) struct.

### Parameters

- `ns` (`string?`): The namespace.
- `key` (`Guid`): The key.
