# DeadLettered Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.deliveryresult.deadlettered/)

## Code {#code-73a4c9b0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.deliveryresult.deadlettered/properties/code-73a4c9b0/)

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

```csharp
[Orleans.Id(1)]
public string? Code
```

Gets the code which identifies why the receiver rejected the message: an application-defined code from an inbox message sink, such as `"orders/duplicate-order"`; `null` when the receiver reported none.

## Reason {#reason-04232762}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.deliveryresult.deadlettered/properties/reason-04232762/)

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

```csharp
[Orleans.Id(0)]
public string Reason
```

Gets the diagnostic reason for the rejection.
