# Rejected.Code

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

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

```csharp
public string? Code
```

Gets the application-defined code which the receiver's inbox message sink reported with the rejection, as [DeadLettered](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.deliveryresult.deadlettered/); `null` when the receiver reported none.
