Share via


EventLogException コンストラクター

定義

EventLogException クラスの新しいインスタンスを初期化します。

オーバーロード

EventLogException()

EventLogException クラスの新しいインスタンスを初期化します。

EventLogException(Int32)

例外のエラー コードを使用して、EventLogException クラスの新しいインスタンスを初期化します。

EventLogException(String)

現在の例外を説明するエラー メッセージを指定して、EventLogException クラスの新しいインスタンスを初期化します。

EventLogException(SerializationInfo, StreamingContext)
古い.

シリアル化したデータを使用して、EventLogException クラスの新しいインスタンスを初期化します。

EventLogException(String, Exception)

エラー メッセージおよび内部例外を使用して、EventLogException クラスの新しいインスタンスを初期化します。

EventLogException()

ソース:
EventLogException.cs
ソース:
EventLogException.cs
ソース:
EventLogException.cs

EventLogException クラスの新しいインスタンスを初期化します。

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

適用対象

EventLogException(Int32)

ソース:
EventLogException.cs
ソース:
EventLogException.cs
ソース:
EventLogException.cs

例外のエラー コードを使用して、EventLogException クラスの新しいインスタンスを初期化します。

protected:
 EventLogException(int errorCode);
protected EventLogException (int errorCode);
new System.Diagnostics.Eventing.Reader.EventLogException : int -> System.Diagnostics.Eventing.Reader.EventLogException
Protected Sub New (errorCode As Integer)

パラメーター

errorCode
Int32

イベント ログに関連する情報の読み取り中または構成中に発生したエラーのエラー コード。

適用対象

EventLogException(String)

ソース:
EventLogException.cs
ソース:
EventLogException.cs
ソース:
EventLogException.cs

現在の例外を説明するエラー メッセージを指定して、EventLogException クラスの新しいインスタンスを初期化します。

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

パラメーター

message
String

現在の例外を説明するエラー メッセージ。

適用対象

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

シリアル化したデータを使用して、EventLogException クラスの新しいインスタンスを初期化します。

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

パラメーター

serializationInfo
SerializationInfo

スローされている例外に関するシリアル化済みオブジェクト データを保持している SerializationInfo オブジェクト。

streamingContext
StreamingContext

転送元または転送先についてのコンテキスト情報を保持する StreamingContext オブジェクトです。

属性

適用対象

EventLogException(String, Exception)

ソース:
EventLogException.cs
ソース:
EventLogException.cs
ソース:
EventLogException.cs

エラー メッセージおよび内部例外を使用して、EventLogException クラスの新しいインスタンスを初期化します。

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

パラメーター

message
String

現在の例外を説明するエラー メッセージ。

innerException
Exception

現在の例外の原因となった例外インスタンス。

適用対象