<PackageReference Include="System.ClientModel" Version="1.10.0" />

System.ClientModel.Primitives.CredentialSettings

public sealed class CredentialSettings
Holds the credential settings used to configure authentication for a client that can be loaded from an IConfigurationSection.
public IConfigurationSection AdditionalProperties { get; set; }

Gets or sets additional properties for the credential.

public string CredentialSource { get; set; }

Gets or sets the source of the credential.

public string Key { get; set; }

Gets or sets the ApiKey.

public CredentialSettings(IConfigurationSection section)

Initializes a new instance of the CredentialSettings class.