# GrainPropertiesResolver Methods

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

## GetGrainProperties(GrainType) {#getgrainproperties-orleans-runtime-graintype-82974461}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.metadata.grainpropertiesresolver/methods/getgrainproperties-orleans-runtime-graintype-82974461/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Manifest/GrainPropertiesResolver.cs#L38-L44)

```csharp
public GrainProperties GetGrainProperties(GrainType grainType)
```

Gets the grain properties for the provided type.

### Parameters

- `grainType` (`GrainType`): The grain type.

### Returns

The grain properties.

## TryGetGrainProperties(GrainType, GrainProperties) {#trygetgrainproperties-orleans-runtime-graintype-out-orleans-metadata-grainproper-57dee949}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.metadata.grainpropertiesresolver/methods/trygetgrainproperties-orleans-runtime-graintype-out-orleans-metadata-grainproper-57dee949/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Manifest/GrainPropertiesResolver.cs#L61-L87)

```csharp
public bool TryGetGrainProperties(GrainType grainType, out GrainProperties properties)
```

Gets the grain properties for the provided type.

### Parameters

- `grainType` (`GrainType`): The grain type.
- `properties` (`GrainProperties`): The grain properties.

### Returns

A value indicating whether grain properties could be found for the provided grain type.
