BuildAbortedException Constructors

Definition

Creates a BuildAborted exception.

Overloads

BuildAbortedException()

Constructs a standard BuildAbortedException.

BuildAbortedException(String)

Constructs a BuildAbortedException with an additional message attached.

BuildAbortedException(SerializationInfo, StreamingContext)
Obsolete.

Protected constructor used for (de)serialization. If we ever add new members to this class, we'll need to update this.

BuildAbortedException(String, Exception)

Constructs a BuildAbortedException with an additional message attached and an inner exception.

BuildAbortedException()

Source:
BuildAbortedException.cs

Constructs a standard BuildAbortedException.

C#
public BuildAbortedException();

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.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

BuildAbortedException(String)

Source:
BuildAbortedException.cs

Constructs a BuildAbortedException with an additional message attached.

C#
public BuildAbortedException(string message);

Parameters

message
String

The error message.

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.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

BuildAbortedException(SerializationInfo, StreamingContext)

Source:
BuildAbortedException.cs

Caution

This API is now deprecated.

Protected constructor used for (de)serialization. If we ever add new members to this class, we'll need to update this.

C#
protected BuildAbortedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
C#
[System.Obsolete(DiagnosticId="SYSLIB0051")]
protected BuildAbortedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The error information.

context
StreamingContext

The error context.

Attributes

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.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

BuildAbortedException(String, Exception)

Source:
BuildAbortedException.cs

Constructs a BuildAbortedException with an additional message attached and an inner exception.

C#
public BuildAbortedException(string message, Exception innerException);

Parameters

message
String

The error message.

innerException
Exception

The inner exception.

Applies to

.NET Framework 4.8.1 ve diğer sürümler
Ürün Sürümler
.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