CompositionError Constructors
Definition
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.
Overloads
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. |
CompositionError(String)
- 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
CompositionError(String, ICompositionElement)
- 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
CompositionError(String, Exception)
- 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
CompositionError(String, ICompositionElement, Exception)
- 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
.