Redigera

Dela via


ChangeRejectedException Constructors

Definition

Initializes a new instance of the ChangeRejectedException class.

Overloads

ChangeRejectedException()

Initializes a new instance of the ChangeRejectedException class with a system-supplied message that describes the error.

ChangeRejectedException(IEnumerable<CompositionError>)

Initializes a new instance of the ChangeRejectedException class with a list of composition errors.

ChangeRejectedException(String)

Initializes a new instance of the ChangeRejectedException class with a specified message that describes the error.

ChangeRejectedException(String, Exception)

Initializes a new instance of the ChangeRejectedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

ChangeRejectedException()

Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs

Initializes a new instance of the ChangeRejectedException class with a system-supplied message that describes the error.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply" This message takes into account the current system culture.

The following table shows the initial property values for an instance of InsufficientMemoryException.

Property Value
InnerException null.
Message The localized error message string.

See also

Applies to

ChangeRejectedException(IEnumerable<CompositionError>)

Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs

Initializes a new instance of the ChangeRejectedException class with a list of composition errors.

public:
 ChangeRejectedException(System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::CompositionError ^> ^ errors);
public ChangeRejectedException (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.CompositionError>? errors);
public ChangeRejectedException (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.CompositionError> errors);
new System.ComponentModel.Composition.ChangeRejectedException : seq<System.ComponentModel.Composition.CompositionError> -> System.ComponentModel.Composition.ChangeRejectedException
Public Sub New (errors As IEnumerable(Of CompositionError))

Parameters

errors
IEnumerable<CompositionError>

A collection of errors that occurred during composition.

Applies to

ChangeRejectedException(String)

Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs

Initializes a new instance of the ChangeRejectedException class with a specified message that describes the error.

public:
 ChangeRejectedException(System::String ^ message);
public ChangeRejectedException (string? message);
public ChangeRejectedException (string message);
new System.ComponentModel.Composition.ChangeRejectedException : string -> System.ComponentModel.Composition.ChangeRejectedException
Public Sub New (message As String)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Remarks

The following table shows the initial property values for an instance of ChangeRejectedException.

Property Value
InnerException null.
Message The error message string specified in message.

See also

Applies to

ChangeRejectedException(String, Exception)

Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs
Source:
ChangeRejectedException.cs

Initializes a new instance of the ChangeRejectedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 ChangeRejectedException(System::String ^ message, Exception ^ innerException);
public ChangeRejectedException (string? message, Exception? innerException);
public ChangeRejectedException (string message, Exception innerException);
new System.ComponentModel.Composition.ChangeRejectedException : string * Exception -> System.ComponentModel.Composition.ChangeRejectedException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed to the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of ChangeRejectedException.

Property Value
InnerException null.
Message The error message string specified in message.

See also

Applies to