EventLogReadingException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 EventLogReadingException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| EventLogReadingException() |
初始化 EventLogReadingException 类的新实例。 |
| EventLogReadingException(String) |
通过指定描述当前异常的 EventLogReadingException 错误消息来初始化类的新实例。 |
| EventLogReadingException(SerializationInfo, StreamingContext) |
已过时.
使用序列化的数据初始化 EventLogReadingException 类的新实例。 |
| EventLogReadingException(String, Exception) |
使用错误消息和内部异常初始化类的新实例 EventLogReadingException 。 |
EventLogReadingException()
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
- Source:
- EventLogException.cs
初始化 EventLogReadingException 类的新实例。
public:
EventLogReadingException();
public EventLogReadingException();
Public Sub New ()
适用于
EventLogReadingException(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
通过指定描述当前异常的 EventLogReadingException 错误消息来初始化类的新实例。
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)
参数
- message
- String
描述当前异常的错误消息。
适用于
EventLogReadingException(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
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用序列化的数据初始化 EventLogReadingException 类的新实例。
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);
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}")>]
new System.Diagnostics.Eventing.Reader.EventLogReadingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Diagnostics.Eventing.Reader.EventLogReadingException
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)
参数
- serializationInfo
- SerializationInfo
保存 SerializationInfo 有关引发异常的序列化对象数据的对象。
- streamingContext
- StreamingContext
StreamingContext包含有关源或目标的上下文信息的对象。
- 属性
适用于
EventLogReadingException(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
使用错误消息和内部异常初始化类的新实例 EventLogReadingException 。
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)
参数
- message
- String
描述当前异常的错误消息。
- innerException
- Exception
导致当前异常的异常实例。