通过


EntryPointNotFoundException 构造函数

定义

初始化 EntryPointNotFoundException 类的新实例。

重载

名称 说明
EntryPointNotFoundException()

初始化 EntryPointNotFoundException 类的新实例。

EntryPointNotFoundException(String)

使用指定的错误消息初始化类的新实例 EntryPointNotFoundException

EntryPointNotFoundException(SerializationInfo, StreamingContext)
已过时.

使用序列化数据初始化类的新实例 EntryPointNotFoundException

EntryPointNotFoundException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用初始化类的新实例 EntryPointNotFoundException

EntryPointNotFoundException()

Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs

初始化 EntryPointNotFoundException 类的新实例。

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

注解

此构造函数将 Message 新实例的属性初始化为系统提供的消息,该消息描述错误,例如“找不到入口点”。此消息将考虑当前系统区域性。

下表显示了 EntryPointNotFoundException实例的初始属性值。

财产 价值
InnerException Null 引用(Nothing 在 Visual Basic 中)。
Message 本地化的错误消息字符串。

适用于

EntryPointNotFoundException(String)

Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs

使用指定的错误消息初始化类的新实例 EntryPointNotFoundException

public:
 EntryPointNotFoundException(System::String ^ message);
public EntryPointNotFoundException(string? message);
public EntryPointNotFoundException(string message);
new EntryPointNotFoundException : string -> EntryPointNotFoundException
Public Sub New (message As String)

参数

message
String

说明异常原因的错误消息。

注解

内容 message 旨在由人类理解。 此构造函数的调用方必须确保此字符串已本地化为当前系统区域性。

下表显示了 EntryPointNotFoundException实例的初始属性值。

财产 价值
InnerException Null 引用(Nothing 在 Visual Basic 中)。
Message 错误消息字符串。

适用于

EntryPointNotFoundException(SerializationInfo, StreamingContext)

Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs

注意

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

使用序列化数据初始化类的新实例 EntryPointNotFoundException

protected:
 EntryPointNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[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 EntryPointNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected EntryPointNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<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 EntryPointNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> EntryPointNotFoundException
new EntryPointNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> EntryPointNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

保存序列化对象数据的对象。

context
StreamingContext

有关源或目标的上下文信息。

属性

注解

在反序列化期间调用此构造函数以重新构造通过流传输的异常对象。

适用于

EntryPointNotFoundException(String, Exception)

Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs
Source:
EntryPointNotFoundException.cs

使用指定的错误消息和对作为此异常原因的内部异常的引用初始化类的新实例 EntryPointNotFoundException

public:
 EntryPointNotFoundException(System::String ^ message, Exception ^ inner);
public EntryPointNotFoundException(string? message, Exception? inner);
public EntryPointNotFoundException(string message, Exception inner);
new EntryPointNotFoundException : string * Exception -> EntryPointNotFoundException
Public Sub New (message As String, inner As Exception)

参数

message
String

说明异常原因的错误消息。

inner
Exception

是当前异常原因的异常。 inner如果参数不是 null 引用(Nothing在 Visual Basic 中),则当前异常在处理内部异常的块中catch引发。

注解

作为上一个异常的直接结果引发的异常应包括对 InnerException 属性中上一个异常的引用。 如果InnerException属性未向构造函数提供内部异常值,则该InnerException属性将返回传递给构造函数的相同值,或返回 null 引用(Nothing在 Visual Basic 中)。

下表显示了 EntryPointNotFoundException实例的初始属性值。

财产 价值
InnerException 内部异常引用。
Message 错误消息字符串。

另请参阅

适用于