語言

EventLogProviderDisabledException 建構函式

定義

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

多載

名稱 Description
EventLogProviderDisabledException()

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

EventLogProviderDisabledException(String)

透過指定描述當前例外的錯誤訊息,初始化該類別的新 EventLogProviderDisabledException 實例。

EventLogProviderDisabledException(SerializationInfo, StreamingContext)
已淘汰.

初始化一個新的類別實例 EventLogProviderDisabledException ,並使用序列化資料。

EventLogProviderDisabledException(String, Exception)

初始化該類別的新實例 EventLogProviderDisabledException ,並帶有錯誤訊息與內部例外。

EventLogProviderDisabledException()

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

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

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

另請參閱

適用於

EventLogProviderDisabledException(String)

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

透過指定描述當前例外的錯誤訊息,初始化該類別的新 EventLogProviderDisabledException 實例。

public:
 EventLogProviderDisabledException(System::String ^ message);
public EventLogProviderDisabledException(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
來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
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);
[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);
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}")>]
new System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
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
來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
EventLogException.cs
來源:
EventLogException.cs

初始化該類別的新實例 EventLogProviderDisabledException ,並帶有錯誤訊息與內部例外。

public:
 EventLogProviderDisabledException(System::String ^ message, Exception ^ innerException);
public EventLogProviderDisabledException(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

就是導致目前例外的例外實例。

另請參閱

適用於