# GrainReferenceShared

Package: [Microsoft.Orleans.Core.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core.Abstractions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Runtime/GrainReference.cs#L21)

```csharp
public class GrainReferenceShared
```

Properties common to [GrainReference](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreference/) instances with the same [GrainReferenceShared](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/) and [GrainInterfaceType](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.graininterfacetype/).

## Constructors

- [GrainReferenceShared(GrainType, GrainInterfaceType, ushort, IGrainReferenceRuntime, InvokeMethodOptions, CodecProvider, CopyContextPool, IServiceProvider)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/constructors/constructor-orleans-runtime-graintype-orleans-runtime-graininterfacetype-ushort-5b286111/)

## Properties

- [CodecProvider](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/codecprovider-1a8d20c1/)
- [CopyContextPool](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/copycontextpool-1d84c987/)
- [GrainType](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/graintype-b98adff1/)
- [InterfaceType](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/interfacetype-cb87607e/)
- [InterfaceVersion](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/interfaceversion-0d98a27b/)
- [InvokeMethodOptions](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/invokemethodoptions-0fdd5a61/)
- [Runtime](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/runtime-4c663f54/)
- [ServiceProvider](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.grainreferenceshared/properties/serviceprovider-a0806594/)
