Modifica

Condividi tramite


ComposablePartException Constructors

Definition

Initializes a new instance of the ComposablePartException class.

Overloads

ComposablePartException()

Initializes a new instance of the ComposablePartException class.

ComposablePartException(String)

Initializes a new instance of the ComposablePartException class with the specified error message.

ComposablePartException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ComposablePartException class with the specified serialization data.

ComposablePartException(String, ICompositionElement)

Initializes a new instance of the ComposablePartException class with the specified error message and the composition element that is the cause of the exception.

ComposablePartException(String, Exception)

Initializes a new instance of the ComposablePartException class with the specified error message and the exception that is the cause of this exception.

ComposablePartException(String, ICompositionElement, Exception)

Initializes a new instance of the ComposablePartException class with the specified error message, and the composition element and exception that are the cause of this exception.

ComposablePartException()

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

Initializes a new instance of the ComposablePartException class.

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

Applies to

ComposablePartException(String)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

Initializes a new instance of the ComposablePartException class with the specified error message.

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)

Parameters

message
String

A message that describes the ComposablePartException, or null to set the Message property to its default value.

Applies to

ComposablePartException(SerializationInfo, StreamingContext)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

Caution

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

Initializes a new instance of the ComposablePartException class with the specified serialization data.

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)

Parameters

info
SerializationInfo

An object that holds the serialized object data for the ComposablePartException.

context
StreamingContext

An object that contains contextual information about the source or destination.

Attributes

Exceptions

info is null.

info is missing a required value.

info contains a value that cannot be cast to the correct type.

Applies to

ComposablePartException(String, ICompositionElement)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

Initializes a new instance of the ComposablePartException class with the specified error message and the composition element that is the cause of the exception.

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)

Parameters

message
String

A message that describes the ComposablePartException, or null to set the Message property to its default value.

element
ICompositionElement

The composition element that is the cause of the ComposablePartException, or null to set the Element property to null.

Applies to

ComposablePartException(String, Exception)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

Initializes a new instance of the ComposablePartException class with the specified error message and the exception that is the cause of this exception.

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)

Parameters

message
String

A message that describes the ComposablePartException, or null to set the Message property to its default value.

innerException
Exception

The exception that is the underlying cause of the ComposablePartException, or null to set the InnerException property to null.

Applies to

ComposablePartException(String, ICompositionElement, Exception)

Source:
ComposablePartException.cs
Source:
ComposablePartException.cs

Initializes a new instance of the ComposablePartException class with the specified error message, and the composition element and exception that are the cause of this exception.

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)

Parameters

message
String

A message that describes the ComposablePartException, or null to set the Message property to its default value.

element
ICompositionElement

The composition element that is the cause of the ComposablePartException, or null to set the Element property to null.

innerException
Exception

The exception that is the underlying cause of the ComposablePartException, or null to set the InnerException property to null.

Applies to