Bagikan melalui


EventLogReadingException Konstruktor

Definisi

Menginisialisasi instans baru kelas EventLogReadingException.

Overload

EventLogReadingException()

Menginisialisasi instans baru kelas EventLogReadingException.

EventLogReadingException(String)

Menginisialisasi instans EventLogReadingException baru kelas dengan menentukan pesan kesalahan yang menjelaskan pengecualian saat ini.

EventLogReadingException(SerializationInfo, StreamingContext)
Kedaluwarsa.

Menginisialisasi instans EventLogReadingException baru kelas dengan data berseri.

EventLogReadingException(String, Exception)

Menginisialisasi instans EventLogReadingException baru kelas dengan pesan kesalahan dan pengecualian dalam.

EventLogReadingException()

Sumber:
EventLogException.cs
Sumber:
EventLogException.cs
Sumber:
EventLogException.cs

Menginisialisasi instans baru kelas EventLogReadingException.

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

Lihat juga

Berlaku untuk

EventLogReadingException(String)

Sumber:
EventLogException.cs
Sumber:
EventLogException.cs
Sumber:
EventLogException.cs

Menginisialisasi instans EventLogReadingException baru kelas dengan menentukan pesan kesalahan yang menjelaskan pengecualian saat ini.

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

Parameter

message
String

Pesan kesalahan yang menjelaskan pengecualian saat ini.

Lihat juga

Berlaku untuk

EventLogReadingException(SerializationInfo, StreamingContext)

Sumber:
EventLogException.cs
Sumber:
EventLogException.cs
Sumber:
EventLogException.cs

Perhatian

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Menginisialisasi instans EventLogReadingException baru kelas dengan data berseri.

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

Parameter

serializationInfo
SerializationInfo

Objek SerializationInfo yang menyimpan data objek berseri tentang pengecualian yang dilemparkan.

streamingContext
StreamingContext

Objek StreamingContext yang berisi informasi kontekstual tentang sumber atau tujuan.

Atribut

Lihat juga

Berlaku untuk

EventLogReadingException(String, Exception)

Sumber:
EventLogException.cs
Sumber:
EventLogException.cs
Sumber:
EventLogException.cs

Menginisialisasi instans EventLogReadingException baru kelas dengan pesan kesalahan dan pengecualian dalam.

public:
 EventLogReadingException(System::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)

Parameter

message
String

Pesan kesalahan yang menjelaskan pengecualian saat ini.

innerException
Exception

Instans Pengecualian yang menyebabkan pengecualian saat ini.

Lihat juga

Berlaku untuk