# ExceptionCodec.GetDataProperty(Exception)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.exceptioncodec/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.exceptioncodec/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Serialization/ISerializableSerializer/ExceptionCodec.cs#L181-L194)

```csharp
public Dictionary<object, object?>? GetDataProperty(Exception exception)
```

Gets the data property from the provided exception.

### Parameters

- `exception` (`Exception`): The exception.

### Returns

The provided exception's `System.Exception.Data` property.
