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

ApiKeyCredential Class

Definition

A credential used to authenticate to a service that accepts an API key. This type provides the ability to update the key's value without creating a new client.

public class ApiKeyCredential
type ApiKeyCredential = class
Public Class ApiKeyCredential
Inheritance
ApiKeyCredential

Constructors

ApiKeyCredential(String)

Initializes a new instance of the ApiKeyCredential class.

Methods

Deconstruct(String)

Deconstructs the credential into component values.

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.

Operators

Implicit(String to ApiKeyCredential)

Converts a string to an ApiKeyCredential.

Applies to