System.Runtime.InteropServices.ExternalException public class ExternalException : SystemException Documentation public virtual int ErrorCode { get; } public ExternalException() protected ExternalException(SerializationInfo info, StreamingContext context) public ExternalException(string message) public ExternalException(string message, Exception inner) public ExternalException(string message, int errorCode)