ComposablePartException 构造函数

定义

初始化 ComposablePartException 类的新实例。

重载

ComposablePartException()

初始化 ComposablePartException 类的新实例。

ComposablePartException(String)

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

ComposablePartException(SerializationInfo, StreamingContext)
已过时.

使用指定的序列化数据初始化 ComposablePartException 类的新实例。

ComposablePartException(String, ICompositionElement)

使用指定的错误消息和导致异常的组合元素初始化 ComposablePartException 类的新实例。

ComposablePartException(String, Exception)

使用指定的错误消息和导致出现此异常的异常来初始化 ComposablePartException 类的新实例。

ComposablePartException(String, ICompositionElement, Exception)

使用指定的错误消息以及导致此异常的组合元素和异常初始化 ComposablePartException 类的新实例。

ComposablePartException()

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

初始化 ComposablePartException 类的新实例。

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

适用于

ComposablePartException(String)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

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

public:
 ComposablePartException(System::String ^ message);
public ComposablePartException (string message);
public ComposablePartException (string? message);
new System.ComponentModel.Composition.Primitives.ComposablePartException : string -> System.ComponentModel.Composition.Primitives.ComposablePartException
Public Sub New (message As String)

参数

message
String

一条描述 ComposablePartException 的消息,或为 null 以将 Message 属性设置为其默认值。

适用于

ComposablePartException(SerializationInfo, StreamingContext)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

注意

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

使用指定的序列化数据初始化 ComposablePartException 类的新实例。

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

参数

info
SerializationInfo

一个保存 ComposablePartException 的序列化对象数据的对象。

context
StreamingContext

一个包含有关源或目标的上下文信息的对象。

属性

例外

infonull

info 缺少必需值。

info 包含无法强制转换为正确类型的值。

适用于

ComposablePartException(String, ICompositionElement)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

使用指定的错误消息和导致异常的组合元素初始化 ComposablePartException 类的新实例。

public:
 ComposablePartException(System::String ^ message, System::ComponentModel::Composition::Primitives::ICompositionElement ^ element);
public ComposablePartException (string message, System.ComponentModel.Composition.Primitives.ICompositionElement element);
public ComposablePartException (string? message, System.ComponentModel.Composition.Primitives.ICompositionElement? element);
new System.ComponentModel.Composition.Primitives.ComposablePartException : string * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Primitives.ComposablePartException
Public Sub New (message As String, element As ICompositionElement)

参数

message
String

一条描述 ComposablePartException 的消息,或为 null 以将 Message 属性设置为其默认值。

element
ICompositionElement

导致 ComposablePartException 的组合元素,或为 null 以将 Element 属性设置为 null

适用于

ComposablePartException(String, Exception)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

使用指定的错误消息和导致出现此异常的异常来初始化 ComposablePartException 类的新实例。

public:
 ComposablePartException(System::String ^ message, Exception ^ innerException);
public ComposablePartException (string message, Exception innerException);
public ComposablePartException (string? message, Exception? innerException);
new System.ComponentModel.Composition.Primitives.ComposablePartException : string * Exception -> System.ComponentModel.Composition.Primitives.ComposablePartException
Public Sub New (message As String, innerException As Exception)

参数

message
String

一条描述 ComposablePartException 的消息,或为 null 以将 Message 属性设置为其默认值。

innerException
Exception

作为导致 ComposablePartException 的根本原因的异常,或为 null 以将 InnerException 属性设置为 null

适用于

ComposablePartException(String, ICompositionElement, Exception)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

使用指定的错误消息以及导致此异常的组合元素和异常初始化 ComposablePartException 类的新实例。

public:
 ComposablePartException(System::String ^ message, System::ComponentModel::Composition::Primitives::ICompositionElement ^ element, Exception ^ innerException);
public ComposablePartException (string message, System.ComponentModel.Composition.Primitives.ICompositionElement element, Exception innerException);
public ComposablePartException (string? message, System.ComponentModel.Composition.Primitives.ICompositionElement? element, Exception? innerException);
new System.ComponentModel.Composition.Primitives.ComposablePartException : string * System.ComponentModel.Composition.Primitives.ICompositionElement * Exception -> System.ComponentModel.Composition.Primitives.ComposablePartException
Public Sub New (message As String, element As ICompositionElement, innerException As Exception)

参数

message
String

一条描述 ComposablePartException 的消息,或为 null 以将 Message 属性设置为其默认值。

element
ICompositionElement

导致 ComposablePartException 的组合元素,或为 null 以将 Element 属性设置为 null

innerException
Exception

作为导致 ComposablePartException 的根本原因的异常,或为 null 以将 InnerException 属性设置为 null

适用于