EventLogProviderDisabledException 建構函式

定義

初始化 EventLogProviderDisabledException 類別的新執行個體。

多載

EventLogProviderDisabledException()

初始化 EventLogProviderDisabledException 類別的新執行個體。

EventLogProviderDisabledException(String)

藉由指定描述目前例外狀況的錯誤訊息,初始化 EventLogProviderDisabledException 類別的新執行個體。

EventLogProviderDisabledException(SerializationInfo, StreamingContext)
已淘汰.

使用序列化資料,初始化 EventLogProviderDisabledException 類別的新執行個體。

EventLogProviderDisabledException(String, Exception)

使用錯誤訊息和內部例外狀況,初始化 EventLogProviderDisabledException 類別的新執行個體。

EventLogProviderDisabledException()

來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
EventLogException.cs

初始化 EventLogProviderDisabledException 類別的新執行個體。

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

另請參閱

適用於

EventLogProviderDisabledException(String)

來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
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)

來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
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)

來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
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

造成目前例外狀況的 Exception 執行個體。

另請參閱

適用於