# MessagePackCodecOptions.AllowDataContractAttributes

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.messagepack/orleans.serialization.messagepackcodecoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.serialization.messagepack/orleans.serialization.messagepackcodecoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.MessagePack/MessagePackCodecOptions.cs)

```csharp
public bool AllowDataContractAttributes
```

Get or sets flag that allows the use of `System.Runtime.Serialization.DataContractAttribute` marked contracts for MessagePackSerializer.
