# MessageId.Key

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.messageid/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.messageid/properties/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Messaging/MessageId.cs#L24)

```csharp
public HierarchicalKey Key
```

Gets the hierarchical key which identifies the message.
