# IGrainBindingsProviderAttribute Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.igrainbindingsproviderattribute/)

## GetBindings(IServiceProvider, Type, GrainType) {#getbindings-system-iserviceprovider-system-type-orleans-runtime-graintype-d7f12a75}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.metadata.igrainbindingsproviderattribute/methods/getbindings-system-iserviceprovider-system-type-orleans-runtime-graintype-d7f12a75/)

```csharp
public abstract IEnumerable<Dictionary<string, string>> GetBindings(IServiceProvider services, Type grainClass, GrainType grainType)
```

Gets bindings for the type this attribute is attached to.

### Parameters

- `services` (`IServiceProvider`): The service provider.
- `grainClass` (`Type`): The grain class.
- `grainType` (`GrainType`): The grain type.

### Returns

The bindings for the specified grain.
