EventLogNotFoundException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the EventLogNotFoundException class.
Overloads
EventLogNotFoundException() |
Initializes a new instance of the EventLogNotFoundException class. |
EventLogNotFoundException(String) |
Initializes a new instance of the EventLogNotFoundException class by specifying the error message that describes the current exception. |
EventLogNotFoundException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the EventLogNotFoundException class with serialized data. |
EventLogNotFoundException(String, Exception) |
Initializes a new instance of the EventLogNotFoundException class with an error message and inner exception. |
EventLogNotFoundException()
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Initializes a new instance of the EventLogNotFoundException class.
public:
EventLogNotFoundException();
public EventLogNotFoundException ();
Public Sub New ()
Applies to
EventLogNotFoundException(String)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Initializes a new instance of the EventLogNotFoundException class by specifying the error message that describes the current exception.
public:
EventLogNotFoundException(System::String ^ message);
public EventLogNotFoundException (string message);
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : string -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
Public Sub New (message As String)
Parameters
- message
- String
The error message that describes the current exception.
Applies to
EventLogNotFoundException(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 EventLogNotFoundException class with serialized data.
protected:
EventLogNotFoundException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogNotFoundException (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 EventLogNotFoundException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
[<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.EventLogNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
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
EventLogNotFoundException(String, Exception)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Initializes a new instance of the EventLogNotFoundException class with an error message and inner exception.
public:
EventLogNotFoundException(System::String ^ message, Exception ^ innerException);
public EventLogNotFoundException (string message, Exception innerException);
new System.Diagnostics.Eventing.Reader.EventLogNotFoundException : string * Exception -> System.Diagnostics.Eventing.Reader.EventLogNotFoundException
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.