通过


AddInSegmentDirectoryNotFoundException 构造函数

定义

初始化 AddInSegmentDirectoryNotFoundException 类的新实例。

重载

名称 说明
AddInSegmentDirectoryNotFoundException()

初始化 AddInSegmentDirectoryNotFoundException 类的新实例。

AddInSegmentDirectoryNotFoundException(String)

使用指定的消息初始化类的新实例 AddInSegmentDirectoryNotFoundException

AddInSegmentDirectoryNotFoundException(SerializationInfo, StreamingContext)

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

AddInSegmentDirectoryNotFoundException(String, Exception)

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

AddInSegmentDirectoryNotFoundException()

初始化 AddInSegmentDirectoryNotFoundException 类的新实例。

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

注解

此构造函数将 Message 新实例的属性初始化为描述错误的系统提供的消息(例如,“目标应用程序域已被卸载”。 此消息将当前系统区域性考虑在内。

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

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

适用于

AddInSegmentDirectoryNotFoundException(String)

使用指定的消息初始化类的新实例 AddInSegmentDirectoryNotFoundException

public:
 AddInSegmentDirectoryNotFoundException(System::String ^ message);
public AddInSegmentDirectoryNotFoundException(string message);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : string -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Public Sub New (message As String)

参数

message
String

描述错误的消息。

注解

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

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

适用于

AddInSegmentDirectoryNotFoundException(SerializationInfo, StreamingContext)

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

protected:
 AddInSegmentDirectoryNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AddInSegmentDirectoryNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

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

context
StreamingContext

有关源或目标对象数据的上下文信息。

注解

在反序列化期间调用此构造函数以重建通过流传输的异常对象。 有关详细信息,请参阅 XML 和 SOAP 序列化

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

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

适用于

AddInSegmentDirectoryNotFoundException(String, Exception)

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

public:
 AddInSegmentDirectoryNotFoundException(System::String ^ message, Exception ^ innerException);
public AddInSegmentDirectoryNotFoundException(string message, Exception innerException);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : string * Exception -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Public Sub New (message As String, innerException As Exception)

参数

message
String

描述错误的消息。

innerException
Exception

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

注解

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

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

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

适用于