你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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