# ReferencedObjectCollection.TryGetReferencedObject(uint)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Session/ReferencedObjectCollection.cs#L54-L64)

```csharp
public object TryGetReferencedObject(uint reference)
```

Tries to get the referenced object with the specified id.

### Parameters

- `reference` (`uint`): The reference.

### Returns

The referenced object with the specified id if found, `null` otherwise.
