# ReferenceNotFoundException Methods

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

## GetObjectData(SerializationInfo, StreamingContext) {#getobjectdata-system-runtime-serialization-serializationinfo-system-runtime-seri-9cde9747}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.referencenotfoundexception/methods/getobjectdata-system-runtime-serialization-serializationinfo-system-runtime-seri-9cde9747/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Exceptions.cs#L281-L284)

```csharp
[System.Obsolete]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
```

When overridden in a derived class, sets the `System.Runtime.Serialization.SerializationInfo` with information about the exception.

### Parameters

- `info` (`SerializationInfo`): The `System.Runtime.Serialization.SerializationInfo` that holds the serialized object data about the exception being thrown.
- `context` (`StreamingContext`): The `System.Runtime.Serialization.StreamingContext` that contains contextual information about the source or destination.

### Exceptions

- `System.ArgumentNullException`: The `info` parameter is a null reference (`Nothing` in Visual Basic).
