# 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/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/ISerializableSerializer/ExceptionCodec.cs#L182-L195)

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