# 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/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Serialization/Session/ReferencedObjectCollection.cs#L53-L63)

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