# GrainReferenceActivator Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.grainreferences.grainreferenceactivator/)

## CreateReference(GrainId, GrainInterfaceType) {#createreference-orleans-runtime-grainid-orleans-runtime-graininterfacetype-514af3bc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.grainreferences.grainreferenceactivator/methods/createreference-orleans-runtime-grainid-orleans-runtime-graininterfacetype-514af3bc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/GrainReferences/GrainReferenceActivator.cs#L58-L64)

```csharp
public GrainReference CreateReference(GrainId grainId, GrainInterfaceType interfaceType)
```

Creates a grain reference pointing to the specified grain id and implementing the specified grain interface type.

### Parameters

- `grainId` (`GrainId`): The grain id.
- `interfaceType` (`GrainInterfaceType`): The grain interface type.

### Returns

A new grain reference.
