Language

FileCredentialException.Cause Property

Definition

What went wrong while acquiring the token, when the attempt failed rather than simply returning nothing.

An acquisition that threw and an identity with no permissions both arrive here as "no token", but the fixes differ: one is a transient or configuration fault, the other is a consent problem. Local to this process; contrast Details, which is the service's own words.

public string? Cause { get; }
member this.Cause : string
Public ReadOnly Property Cause As String

Property Value

Applies to