Share via


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 空引用(在 Visual Basic 中为 Nothing)。
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 空引用(在 Visual Basic 中为 Nothing)。
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 空引用(在 Visual Basic 中为 Nothing)。
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 本地化的错误消息字符串。

适用于