CompositionError Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the CompositionError class.
CompositionError(String) |
Initializes a new instance of the CompositionError class with the specified error message. |
CompositionError(String, ICompositionElement) |
Initializes a new instance of the CompositionError class with the specified error message and the composition element that is the cause of the composition error. |
CompositionError(String, Exception) |
Initializes a new instance of the CompositionError class with the specified error message and the exception that is the cause of the composition error. |
CompositionError(String, ICompositionElement, Exception) |
Initializes a new instance of the CompositionError class with the specified error message, and the composition element and exception that are the cause of the composition error. |
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
Initializes a new instance of the CompositionError class with the specified error message.
public:
CompositionError(System::String ^ message);
public CompositionError(string? message);
public CompositionError(string message);
new System.ComponentModel.Composition.CompositionError : string -> System.ComponentModel.Composition.CompositionError
Public Sub New (message As String)
Parameters
- message
- String
A message that describes the CompositionError or null
to set the Description property to an empty string ("").
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
Initializes a new instance of the CompositionError class with the specified error message and the composition element that is the cause of the composition error.
public:
CompositionError(System::String ^ message, System::ComponentModel::Composition::Primitives::ICompositionElement ^ element);
public CompositionError(string? message, System.ComponentModel.Composition.Primitives.ICompositionElement? element);
public CompositionError(string message, System.ComponentModel.Composition.Primitives.ICompositionElement element);
new System.ComponentModel.Composition.CompositionError : string * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.CompositionError
Public Sub New (message As String, element As ICompositionElement)
Parameters
- message
- String
A message that describes the CompositionError or null
to set the Description property to an empty string ("").
- element
- ICompositionElement
The composition element that is the cause of the CompositionError or null
to set the Element property to null
.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
Initializes a new instance of the CompositionError class with the specified error message and the exception that is the cause of the composition error.
public:
CompositionError(System::String ^ message, Exception ^ exception);
public CompositionError(string? message, Exception? exception);
public CompositionError(string message, Exception exception);
new System.ComponentModel.Composition.CompositionError : string * Exception -> System.ComponentModel.Composition.CompositionError
Public Sub New (message As String, exception As Exception)
Parameters
- message
- String
A message that describes the CompositionError or null
to set the Description property to an empty string ("").
- exception
- Exception
The Exception that is the underlying cause of the CompositionError or null
to set the Exception property to null
.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
- Source:
- CompositionError.cs
Initializes a new instance of the CompositionError class with the specified error message, and the composition element and exception that are the cause of the composition error.
public:
CompositionError(System::String ^ message, System::ComponentModel::Composition::Primitives::ICompositionElement ^ element, Exception ^ exception);
public CompositionError(string? message, System.ComponentModel.Composition.Primitives.ICompositionElement? element, Exception? exception);
public CompositionError(string message, System.ComponentModel.Composition.Primitives.ICompositionElement element, Exception exception);
new System.ComponentModel.Composition.CompositionError : string * System.ComponentModel.Composition.Primitives.ICompositionElement * Exception -> System.ComponentModel.Composition.CompositionError
Public Sub New (message As String, element As ICompositionElement, exception As Exception)
Parameters
- message
- String
A message that describes the CompositionError or null
to set the Description property to an empty string ("").
- element
- ICompositionElement
The composition element that is the cause of the CompositionError or null
to set the Element property to null
.
- exception
- Exception
The Exception that is the underlying cause of the CompositionError or null
to set the Exception property to null
.
Applies to
.NET 10 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: