CompositionException 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 CompositionException class.
Overloads
CompositionException() |
Initializes a new instance of the CompositionException class. |
CompositionException(IEnumerable<CompositionError>) |
Initializes a new instance of the CompositionException class with the specified collection of composition errors. |
CompositionException(String) |
Initializes a new instance of the CompositionException class with the specified error message. |
CompositionException(String, Exception) |
Initializes a new instance of the CompositionException class with the specified error message and the exception that is the cause of this exception. |
CompositionException()
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
Initializes a new instance of the CompositionException class.
public:
CompositionException();
public CompositionException ();
Public Sub New ()
Applies to
CompositionException(IEnumerable<CompositionError>)
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
Initializes a new instance of the CompositionException class with the specified collection of composition errors.
public:
CompositionException(System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::CompositionError ^> ^ errors);
public CompositionException (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.CompositionError>? errors);
public CompositionException (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.CompositionError> errors);
new System.ComponentModel.Composition.CompositionException : seq<System.ComponentModel.Composition.CompositionError> -> System.ComponentModel.Composition.CompositionException
Public Sub New (errors As IEnumerable(Of CompositionError))
Parameters
- errors
- IEnumerable<CompositionError>
A collection of CompositionError objects that represent problems during composition.
Exceptions
errors
contains an element that is null
.
Applies to
CompositionException(String)
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
Initializes a new instance of the CompositionException class with the specified error message.
public:
CompositionException(System::String ^ message);
public CompositionException (string? message);
public CompositionException (string message);
new System.ComponentModel.Composition.CompositionException : string -> System.ComponentModel.Composition.CompositionException
Public Sub New (message As String)
Parameters
- message
- String
A message that describes the CompositionException or null
to set the Message property to its default value.
Applies to
CompositionException(String, Exception)
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
- Source:
- CompositionException.cs
Initializes a new instance of the CompositionException class with the specified error message and the exception that is the cause of this exception.
public:
CompositionException(System::String ^ message, Exception ^ innerException);
public CompositionException (string? message, Exception? innerException);
public CompositionException (string message, Exception innerException);
new System.ComponentModel.Composition.CompositionException : string * Exception -> System.ComponentModel.Composition.CompositionException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
A message that describes the CompositionException or null
to set the Message property to its default value.
- innerException
- Exception
The exception that is the underlying cause of the CompositionException or null
to set the InnerException property to null
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기