Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AzureKeyCredential Class

Definition

Namespace:
Azure
Assembly:
Azure.Core.dll
Package:
Azure.Core v1.58.0
Source:
AzureKeyCredential.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Name Description
AzureKeyCredential(String)

Initializes a new instance of the AzureKeyCredential class.

Methods

Name Description
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


Feedback

Was this page helpful?