# MessagePackCodecOptions Properties

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

## AllowDataContractAttributes {#allowdatacontractattributes-27e07776}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.messagepack/orleans.serialization.messagepackcodecoptions/properties/allowdatacontractattributes-27e07776/)

[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.

## IsCopyableType {#iscopyabletype-4f1cbcf8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.messagepack/orleans.serialization.messagepackcodecoptions/properties/iscopyabletype-4f1cbcf8/)

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

```csharp
public Func<Type, bool?> IsCopyableType
```

Gets or sets a delegate used to determine if a type is supported by the MessagePack serializer for copying.

## IsSerializableType {#isserializabletype-db29791e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.messagepack/orleans.serialization.messagepackcodecoptions/properties/isserializabletype-db29791e/)

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

```csharp
public Func<Type, bool?> IsSerializableType
```

Gets or sets a delegate used to determine if a type is supported by the MessagePack serializer for serialization and deserialization.

## SerializerOptions {#serializeroptions-ca1e5126}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.messagepack/orleans.serialization.messagepackcodecoptions/properties/serializeroptions-ca1e5126/)

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

```csharp
public MessagePackSerializerOptions SerializerOptions
```

Gets or sets the `MessagePack.MessagePackSerializerOptions`.
