語言

EventLogReadingException 建構函式

定義

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

多載

名稱 Description
EventLogReadingException()

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

EventLogReadingException(String)

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

EventLogReadingException(SerializationInfo, StreamingContext)
已淘汰.

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

EventLogReadingException(String, Exception)

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

EventLogReadingException()

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

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

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

另請參閱

適用於

EventLogReadingException(String)

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

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

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

參數

message
String

描述當前例外的錯誤訊息。

另請參閱

適用於

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

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

protected:
 EventLogReadingException(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 EventLogReadingException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected EventLogReadingException(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.EventLogReadingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogReadingException
new System.Diagnostics.Eventing.Reader.EventLogReadingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogReadingException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

參數

serializationInfo
SerializationInfo

儲存 SerializationInfo 關於拋出異常的序列化物件資料的物件。

streamingContext
StreamingContext

包含 StreamingContext 關於來源或目的地的上下文資訊的物件。

屬性

另請參閱

適用於

EventLogReadingException(String, Exception)

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

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

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

參數

message
String

描述當前例外的錯誤訊息。

innerException
Exception

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

另請參閱

適用於