Läs på engelska Redigera

Dela via


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
Source:
ComposablePartException.cs

Initializes a new instance of the ComposablePartException class.

public ComposablePartException ();

Applies to

.NET 9 (package-provided) och andra versioner
Produkt Versioner
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ComposablePartException(String)

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

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

public ComposablePartException (string? message);
public ComposablePartException (string message);

Parameters

message
String

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

Applies to

.NET 9 (package-provided) och andra versioner
Produkt Versioner
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ComposablePartException(SerializationInfo, StreamingContext)

Source:
ComposablePartException.cs
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.

[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);
protected ComposablePartException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

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

.NET 9 (package-provided) och andra versioner
Produkt Versioner (Föråldrad)
.NET (8 (package-provided), 9 (package-provided))
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ComposablePartException(String, ICompositionElement)

Source:
ComposablePartException.cs
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 (string? message, System.ComponentModel.Composition.Primitives.ICompositionElement? element);
public ComposablePartException (string message, System.ComponentModel.Composition.Primitives.ICompositionElement element);

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

.NET 9 (package-provided) och andra versioner
Produkt Versioner
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ComposablePartException(String, Exception)

Source:
ComposablePartException.cs
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 (string? message, Exception? innerException);
public ComposablePartException (string message, Exception innerException);

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

.NET 9 (package-provided) och andra versioner
Produkt Versioner
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ComposablePartException(String, ICompositionElement, Exception)

Source:
ComposablePartException.cs
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 (string? message, System.ComponentModel.Composition.Primitives.ICompositionElement? element, Exception? innerException);
public ComposablePartException (string message, System.ComponentModel.Composition.Primitives.ICompositionElement element, Exception innerException);

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

.NET 9 (package-provided) och andra versioner
Produkt Versioner
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)