EventLogProviderDisabledException 构造函数

定义

初始化 EventLogProviderDisabledException 类的新实例。

重载

EventLogProviderDisabledException()

初始化 EventLogProviderDisabledException 类的新实例。

EventLogProviderDisabledException(String)

通过指定描述当前异常的错误消息初始化 EventLogProviderDisabledException 类的新实例。

EventLogProviderDisabledException(SerializationInfo, StreamingContext)
已过时.

用序列化数据初始化 EventLogProviderDisabledException 类的新实例。

EventLogProviderDisabledException(String, Exception)

使用错误消息和内部异常初始化 EventLogProviderDisabledException 类的新实例。

EventLogProviderDisabledException()

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

初始化 EventLogProviderDisabledException 类的新实例。

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

另请参阅

适用于

EventLogProviderDisabledException(String)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

通过指定描述当前异常的错误消息初始化 EventLogProviderDisabledException 类的新实例。

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

参数

message
String

描述当前异常的错误消息。

另请参阅

适用于

EventLogProviderDisabledException(SerializationInfo, StreamingContext)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

用序列化数据初始化 EventLogProviderDisabledException 类的新实例。

protected:
 EventLogProviderDisabledException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogProviderDisabledException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected EventLogProviderDisabledException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

参数

serializationInfo
SerializationInfo

SerializationInfo 对象,它包含有关所引发异常的序列化对象数据。

streamingContext
StreamingContext

StreamingContext 对象,该对象包含有关源或目标的上下文信息。

属性

另请参阅

适用于

EventLogProviderDisabledException(String, Exception)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

使用错误消息和内部异常初始化 EventLogProviderDisabledException 类的新实例。

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

参数

message
String

描述当前异常的错误消息。

innerException
Exception

导致当前异常的异常实例。

另请参阅

适用于