# IDocumentIdProvider.GetDocumentIdentifiers(string, GrainId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.idocumentidprovider/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.idocumentidprovider/methods/)

```csharp
public abstract ValueTask<(string DocumentId, string PartitionKey)> IDocumentIdProvider.GetDocumentIdentifiers(string grainType, GrainId grainId)
```

Gets the document identifier for the specified grain.

### Parameters

- `grainType` (`string`): The grain type.
- `grainId` (`GrainId`): The grain identifier.

### Returns

The document id and partition key.
