EventLogException Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Inicializa una nueva instancia de la clase EventLogException.
Sobrecargas
| Nombre | Description |
|---|---|
| EventLogException() |
Inicializa una nueva instancia de la clase EventLogException. |
| EventLogException(Int32) |
Inicializa una nueva instancia de la EventLogException clase con el código de error de la excepción. |
| EventLogException(String) |
Inicializa una nueva instancia de la EventLogException clase especificando el mensaje de error que describe la excepción actual. |
| EventLogException(SerializationInfo, StreamingContext) |
Obsoletos.
Inicializa una nueva instancia de la EventLogException clase con datos serializados. |
| EventLogException(String, Exception) |
Inicializa una nueva instancia de la EventLogException clase con un mensaje de error y una excepción interna. |
EventLogException()
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Inicializa una nueva instancia de la clase EventLogException.
public:
EventLogException();
public EventLogException();
Public Sub New ()
Se aplica a
EventLogException(Int32)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Inicializa una nueva instancia de la EventLogException clase con el código de error de la excepción.
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)
Parámetros
- errorCode
- Int32
Código de error del error que se produjo al leer o configurar información relacionada con el registro de eventos.
Se aplica a
EventLogException(String)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Inicializa una nueva instancia de la EventLogException clase especificando el mensaje de error que describe la excepción actual.
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)
Parámetros
- message
- String
Mensaje de error que describe la excepción actual.
Se aplica a
EventLogException(SerializationInfo, StreamingContext)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Precaución
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Inicializa una nueva instancia de la EventLogException clase con datos serializados.
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);
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}")>]
new System.Diagnostics.Eventing.Reader.EventLogException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogException
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)
Parámetros
- serializationInfo
- SerializationInfo
Objeto SerializationInfo que contiene los datos del objeto serializado sobre la excepción que se está iniciando.
- streamingContext
- StreamingContext
Objeto StreamingContext que contiene información contextual sobre el origen o el destino.
- Atributos
Se aplica a
EventLogException(String, Exception)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Inicializa una nueva instancia de la EventLogException clase con un mensaje de error y una excepción interna.
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)
Parámetros
- message
- String
Mensaje de error que describe la excepción actual.
- innerException
- Exception
Instancia de excepción que provocó la excepción actual.