InternalLoggerException 构造函数

定义

初始化 InternalLoggerException 类。Initializes the InternalLoggerException class.

重载

InternalLoggerException()

初始化 InternalLoggerException 类的新实例。Initializes a new instance of the InternalLoggerException class.

InternalLoggerException(String)

使用指定的值初始化 InternalLoggerException 类的新实例。Initializes a new instance of the InternalLoggerException class using the specified values.

InternalLoggerException(String, Exception)

使用指定的值初始化 InternalLoggerException 类的新实例。Initializes a new instance of the InternalLoggerException class using the specified values.

InternalLoggerException()

初始化 InternalLoggerException 类的新实例。Initializes a new instance of the InternalLoggerException class.

public:
 InternalLoggerException();
public InternalLoggerException ();
Public Sub New ()

适用于

InternalLoggerException(String)

使用指定的值初始化 InternalLoggerException 类的新实例。Initializes a new instance of the InternalLoggerException class using the specified values.

public:
 InternalLoggerException(System::String ^ message);
public InternalLoggerException (string message);
new Microsoft.Build.BuildEngine.InternalLoggerException : string -> Microsoft.Build.BuildEngine.InternalLoggerException
Public Sub New (message As String)

参数

message
String

解释异常原因的错误消息。The error message that explains the reason for the exception.

适用于

InternalLoggerException(String, Exception)

使用指定的值初始化 InternalLoggerException 类的新实例。Initializes a new instance of the InternalLoggerException class using the specified values.

public:
 InternalLoggerException(System::String ^ message, Exception ^ innerException);
public InternalLoggerException (string message, Exception innerException);
new Microsoft.Build.BuildEngine.InternalLoggerException : string * Exception -> Microsoft.Build.BuildEngine.InternalLoggerException
Public Sub New (message As String, innerException As Exception)

参数

message
String

解释异常原因的错误消息。The error message that explains the reason for the exception.

innerException
Exception

导致当前异常的异常。The exception that is the cause of the current exception. 如果 innerException 参数不是 null 引用(在 Visual Basic 中为 Nothing),则在处理内部异常的 catch 块中引发当前异常。If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

适用于