EntryPointNotFoundException 构造函数    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 EntryPointNotFoundException 类的新实例。
重载
| EntryPointNotFoundException() | 
						 初始化 EntryPointNotFoundException 类的新实例。  | 
        	
| EntryPointNotFoundException(String) | 
						 用指定的错误消息初始化 EntryPointNotFoundException 类的新实例。  | 
        	
| EntryPointNotFoundException(SerializationInfo, StreamingContext) | 
							 
		已过时.
	 
用序列化数据初始化 EntryPointNotFoundException 类的新实例。  | 
        	
| EntryPointNotFoundException(String, Exception) | 
						 使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 EntryPointNotFoundException 类的新实例。  | 
        	
EntryPointNotFoundException()
初始化 EntryPointNotFoundException 类的新实例。
public:
 EntryPointNotFoundException();
	public EntryPointNotFoundException ();
	Public Sub New ()
    	注解
此构造函数将 Message 新实例的 属性初始化为描述错误的系统提供的消息,例如“找不到入口点”。此消息考虑了当前系统区域性。
下表显示了 EntryPointNotFoundException 实例的初始属性值。
| properties | 值 | 
|---|---|
| InnerException | 空引用(在 Visual Basic 中为 Nothing)。 | 
| Message | 本地化的错误消息字符串。 | 
适用于
EntryPointNotFoundException(String)
用指定的错误消息初始化 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 实例的初始属性值。
| properties | 值 | 
|---|---|
| InnerException | 空引用(在 Visual Basic 中为 Nothing)。 | 
| Message | 错误消息字符串。 | 
适用于
EntryPointNotFoundException(SerializationInfo, StreamingContext)
注意
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);
	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);
	new EntryPointNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> EntryPointNotFoundException
	[<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
	Protected Sub New (info As SerializationInfo, context As StreamingContext)
	参数
- info
 - SerializationInfo
 
承载序列化对象数据的对象。
- context
 - StreamingContext
 
关于来源和目标的上下文信息
- 属性
 
注解
在反序列化期间调用此构造函数以重新构造在流上传输的异常对象。
适用于
EntryPointNotFoundException(String, Exception)
使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 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 引用(在 Visual Basic 中为 Nothing),则在处理内部异常的 catch 块中引发当前异常。
注解
因前一个异常而直接引发的异常应在 InnerException 属性中包含对前一个异常的引用。 
              InnerException 属性返回传递到构造函数中的相同值,或者如果 Nothing 属性不向构造函数提供内部异常值,则为空引用(在 Visual Basic 中为 InnerException)。
下表显示了 EntryPointNotFoundException 实例的初始属性值。
| properties | “值” | 
|---|---|
| InnerException | 内部异常引用。 | 
| Message | 错误消息字符串。 |