共用方式為


EventLogNotFoundException 建構函式

定義

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

多載

EventLogNotFoundException()

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

EventLogNotFoundException(String)

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

EventLogNotFoundException(SerializationInfo, StreamingContext)
已淘汰.

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

EventLogNotFoundException(String, Exception)

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

EventLogNotFoundException()

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

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

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

適用於

EventLogNotFoundException(String)

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

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

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

描述目前例外狀況的錯誤訊息。

適用於

EventLogNotFoundException(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.

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

protected:
 EventLogNotFoundException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogNotFoundException (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 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
[<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.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 物件,存放關於擲回之例外狀況的序列化物件資料。

streamingContext
StreamingContext

StreamingContext 物件,其中包含來源或目的地的相關內容資訊。

屬性

適用於

EventLogNotFoundException(String, Exception)

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

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

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

描述目前例外狀況的錯誤訊息。

innerException
Exception

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

適用於