Condividi tramite


AzureKeyCredential Class

Definition

Key credential used to authenticate to an Azure Service. It provides the ability to update the key without creating a new client.

public class AzureKeyCredential : System.ClientModel.ApiKeyCredential
type AzureKeyCredential = class
    inherit ApiKeyCredential
Public Class AzureKeyCredential
Inherits ApiKeyCredential
Inheritance
AzureKeyCredential

Constructors

AzureKeyCredential(String)

Initializes a new instance of the AzureKeyCredential class.

Methods

Deconstruct(String)

Deconstructs the credential into component values.

(Inherited from ApiKeyCredential)
Update(String)

Updates the API key to used to authenticate with the service. This method is intended to be called when the API key has been regenerated and long-lived clients need to be updated to send the new value.

(Inherited from ApiKeyCredential)

Applies to