<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview" />

Microsoft.Identity.Client.MsalManagedIdentityException

This exception class is for exceptions generated from Managed Identity sources. This class is deprecated and will be removed in a future release. Catch MsalServiceException instead. For more details, see https://aka.ms/msal-net-managed-identity

Specifies the managed identity source from which the exception initiates.

public MsalManagedIdentityException(string errorCode, string errorMessage, ManagedIdentitySource source)

Initializes a new instance of the exception class with a specified error code, error message and inner exception indicating the root cause.

public MsalManagedIdentityException(string errorCode, string errorMessage, ManagedIdentitySource source, int statusCode)

Initializes a new instance of the exception class with a specified error code, error message and inner exception indicating the root cause.

public MsalManagedIdentityException(string errorCode, string errorMessage, Exception innerException, ManagedIdentitySource source, int statusCode)

Initializes a new instance of the exception class with a specified error code, error message and managed identity source.

public MsalManagedIdentityException(string errorCode, string errorMessage, Exception innerException, ManagedIdentitySource source)

Initializes a new instance of the exception class with a specified error code, error message and managed identity source.