# IConfigureGrainContextProvider Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.iconfiguregraincontextprovider/)

## TryGetConfigurator(GrainType, GrainProperties, IConfigureGrainContext) {#trygetconfigurator-orleans-runtime-graintype-orleans-metadata-grainproperties-ou-98f534bc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.iconfiguregraincontextprovider/methods/trygetconfigurator-orleans-runtime-graintype-orleans-metadata-grainproperties-ou-98f534bc/)

```csharp
public abstract bool TryGetConfigurator(GrainType grainType, GrainProperties properties, out IConfigureGrainContext configurator)
```

Provides a [IConfigureGrainContext](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.iconfiguregraincontext/) instance for the provided grain type.

### Parameters

- `grainType` (`GrainType`): Type of the grain.
- `properties` (`GrainProperties`): The grain properties.
- `configurator` (`IConfigureGrainContext`): The configuration provider.

### Returns

`true` if a configuration provider was found, `false` otherwise.
