# MicrosoftGraphKeyCredential Constructors

- Package: [Aspire.Hosting.Azure.EntraId](/reference/api/csharp/aspire.hosting.azure.entraid.md)
- Type: [MicrosoftGraphKeyCredential](/reference/api/csharp/aspire.hosting.azure.entraid/microsoftgraphkeycredential.md)
- Kind: `Constructors`
- Members: `1`

Models a public certificate credential declared on a Microsoft Graph application.

<a id="constructor"></a>

## MicrosoftGraphKeyCredential

- Name: `Constructor`

```csharp
public sealed class MicrosoftGraphKeyCredential
{
    public MicrosoftGraphKeyCredential()
    {
        // ...
    }
}
```
