Show / Hide Table of Contents

Class AzureKeyCredential

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

Inheritance
System.ClientModel.ApiKeyCredential
AzureKeyCredential
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Core.dll
Syntax
public class AzureKeyCredential : System.ClientModel.ApiKeyCredential

Constructors

AzureKeyCredential(String)

Initializes a new instance of the AzureKeyCredential class.

Declaration
public AzureKeyCredential (string key);
Parameters
System.String key

Key to use to authenticate with the Azure service.

Exceptions
System.ArgumentNullException

Thrown when the key is null.

System.ArgumentException

Thrown when the key is empty.

Properties

Key

Key used to authenticate to an Azure service.

Declaration
[System.ComponentModel.EditorBrowsable]
public string Key { get; }
Property Value
System.String

Back to top Azure SDK for .NET