Table of Contents

Class KeyVaultReferenceException

Namespace
Microsoft.Extensions.Configuration.AzureAppConfiguration
Assembly
Microsoft.Extensions.Configuration.AzureAppConfiguration.dll

The exception that is thrown when there is an error resolving a reference to Azure Key Vault resource.

public class KeyVaultReferenceException : Exception, ISerializable
Inheritance
KeyVaultReferenceException
Implements
Inherited Members

Constructors

KeyVaultReferenceException(string, Exception)

Initializes a new instance of the System.Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

public KeyVaultReferenceException(string message, Exception inner)

Parameters

message string

The error message that explains the reason for the exception.

inner Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. ///

Properties

ErrorCode

The error code, if available, describing the cause of the exception.

public string ErrorCode { get; set; }

Property Value

string

Etag

The etag of the Key Vault reference that caused the exception.

public string Etag { get; set; }

Property Value

string

Key

The key of the Key Vault reference that caused the exception.

public string Key { get; set; }

Property Value

string

Label

The label of the Key Vault reference that caused the exception.

public string Label { get; set; }

Property Value

string

Message

Gets a message that describes the current exception. Returns The error message that explains the reason for the exception, or an empty string("").

public override string Message { get; }

Property Value

string

SecretIdentifier

The secret identifier used by the Azure Key Vault reference that caused the exception.

public string SecretIdentifier { get; set; }

Property Value

string