EventLogNotFoundException 构造函数

定义

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

重载

EventLogNotFoundException()

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

EventLogNotFoundException(String)

通过指定描述当前异常的错误消息初始化 EventLogNotFoundException 类的新实例。Initializes a new instance of the EventLogNotFoundException class by specifying the error message that describes the current exception.

EventLogNotFoundException(SerializationInfo, StreamingContext)

用序列化数据初始化 EventLogNotFoundException 类的新实例。Initializes a new instance of the EventLogNotFoundException class with serialized data.

EventLogNotFoundException(String, Exception)

使用错误消息和内部异常初始化 EventLogNotFoundException 类的新实例。Initializes a new instance of the EventLogNotFoundException class with an error message and inner exception.

EventLogNotFoundException()

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

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

适用于

EventLogNotFoundException(String)

通过指定描述当前异常的错误消息初始化 EventLogNotFoundException 类的新实例。Initializes a new instance of the EventLogNotFoundException class by specifying the error message that describes the current exception.

public:
 EventLogNotFoundException(System::String ^ message);
public EventLogNotFoundException (string message);
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : string -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
Public Sub New (message As String)

参数

message
String

描述当前异常的错误消息。The error message that describes the current exception.

适用于

EventLogNotFoundException(SerializationInfo, StreamingContext)

用序列化数据初始化 EventLogNotFoundException 类的新实例。Initializes a new instance of the EventLogNotFoundException class with serialized data.

protected:
 EventLogNotFoundException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogNotFoundException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

参数

serializationInfo
SerializationInfo

SerializationInfo 对象,它包含有关所引发异常的序列化对象数据。The SerializationInfo object that holds the serialized object data about the exception thrown.

streamingContext
StreamingContext

StreamingContext 对象,该对象包含有关源或目标的上下文信息。The StreamingContext object that contains contextual information about the source or destination.

适用于

EventLogNotFoundException(String, Exception)

使用错误消息和内部异常初始化 EventLogNotFoundException 类的新实例。Initializes a new instance of the EventLogNotFoundException class with an error message and inner exception.

public:
 EventLogNotFoundException(System::String ^ message, Exception ^ innerException);
public EventLogNotFoundException (string message, Exception innerException);
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : string * Exception -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
Public Sub New (message As String, innerException As Exception)

参数

message
String

描述当前异常的错误消息。The error message that describes the current exception.

innerException
Exception

导致当前异常的异常实例。The Exception instance that caused the current exception.

适用于