Microsoft.Identity.Extensions.InteropException class InteropException : Exception An unexpected error occurred in interop-code. Documentation Code public int ErrorCode { get; } Native error code. public InteropException() public InteropException(string message, int errorCode) public InteropException(string message, int errorCode, Exception innerException)