EventLogProviderDisabledException 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 EventLogProviderDisabledException class.
Overloads
EventLogProviderDisabledException() |
Initializes a new instance of the EventLogProviderDisabledException class. |
EventLogProviderDisabledException(String) |
Initializes a new instance of the EventLogProviderDisabledException class by specifying the error message that describes the current exception. |
EventLogProviderDisabledException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the EventLogProviderDisabledException class with serialized data. |
EventLogProviderDisabledException(String, Exception) |
Initializes a new instance of the EventLogProviderDisabledException class with an error message and inner exception. |
EventLogProviderDisabledException()
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Initializes a new instance of the EventLogProviderDisabledException class.
public:
EventLogProviderDisabledException();
public EventLogProviderDisabledException ();
Public Sub New ()
See also
Applies to
EventLogProviderDisabledException(String)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Initializes a new instance of the EventLogProviderDisabledException class by specifying the error message that describes the current exception.
public:
EventLogProviderDisabledException(System::String ^ message);
public EventLogProviderDisabledException (string message);
new System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException : string -> System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
Public Sub New (message As String)
Parameters
- message
- String
The error message that describes the current exception.
See also
Applies to
EventLogProviderDisabledException(SerializationInfo, StreamingContext)
- 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 EventLogProviderDisabledException class with serialized data.
protected:
EventLogProviderDisabledException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected EventLogProviderDisabledException (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 EventLogProviderDisabledException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
[<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.EventLogProviderDisabledException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
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
See also
Applies to
EventLogProviderDisabledException(String, Exception)
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
Initializes a new instance of the EventLogProviderDisabledException class with an error message and inner exception.
public:
EventLogProviderDisabledException(System::String ^ message, Exception ^ innerException);
public EventLogProviderDisabledException (string message, Exception innerException);
new System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException : string * Exception -> System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
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.
See also
Applies to
.NET