FileCredentialException.Cause Property
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.
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