ApiKeyCredential Class
Definition
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.
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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per