# DefaultDocumentIdProvider.GetDocumentIdentifiers(string, GrainId)

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

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Azure/Orleans.Persistence.Cosmos/DefaultDocumentIdProvider.cs#L37-L43)

```csharp
public ValueTask<(string DocumentId, string PartitionKey)> DefaultDocumentIdProvider.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.
