Editar

Compartir a través de


EventLogInvalidDataException Constructors

Definition

Initializes a new instance of the EventLogInvalidDataException class.

Overloads

EventLogInvalidDataException()

Initializes a new instance of the EventLogInvalidDataException class.

EventLogInvalidDataException(String)

Initializes a new instance of the EventLogInvalidDataException class by specifying the error message that describes the current exception.

EventLogInvalidDataException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the EventLogInvalidDataException class with serialized data.

EventLogInvalidDataException(String, Exception)

Initializes a new instance of the EventLogInvalidDataException class with an error message and inner exception.

EventLogInvalidDataException()

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

Initializes a new instance of the EventLogInvalidDataException class.

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

Applies to

EventLogInvalidDataException(String)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

Initializes a new instance of the EventLogInvalidDataException class by specifying the error message that describes the current exception.

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

Parameters

message
String

The error message that describes the current exception.

Applies to

EventLogInvalidDataException(SerializationInfo, StreamingContext)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

Caution

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

Initializes a new instance of the EventLogInvalidDataException class with serialized data.

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

Parameters

serializationInfo
SerializationInfo

The SerializationInfo object that holds the serialized object data about the exception thrown.

streamingContext
StreamingContext

The StreamingContext object that contains contextual information about the source or destination.

Attributes

Applies to

EventLogInvalidDataException(String, Exception)

Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs
Source:
EventLogException.cs

Initializes a new instance of the EventLogInvalidDataException class with an error message and inner exception.

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

Parameters

message
String

The error message that describes the current exception.

innerException
Exception

The Exception instance that caused the current exception.

Applies to