다음을 통해 공유


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.

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

Applies to

BuildAbortedException(String)

Source:
BuildAbortedException.cs

Constructs a BuildAbortedException with an additional message attached.

public:
 BuildAbortedException(System::String ^ message);
public BuildAbortedException (string message);
new Microsoft.Build.Exceptions.BuildAbortedException : string -> Microsoft.Build.Exceptions.BuildAbortedException
Public Sub New (message As String)

Parameters

message
String

The error message.

Applies to

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.

protected:
 BuildAbortedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected BuildAbortedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete(DiagnosticId="SYSLIB0051")]
protected BuildAbortedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Build.Exceptions.BuildAbortedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Build.Exceptions.BuildAbortedException
[<System.Obsolete(DiagnosticId="SYSLIB0051")>]
new Microsoft.Build.Exceptions.BuildAbortedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Build.Exceptions.BuildAbortedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The error information.

context
StreamingContext

The error context.

Attributes

Applies to

BuildAbortedException(String, Exception)

Source:
BuildAbortedException.cs

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

public:
 BuildAbortedException(System::String ^ message, Exception ^ innerException);
public BuildAbortedException (string message, Exception innerException);
new Microsoft.Build.Exceptions.BuildAbortedException : string * Exception -> Microsoft.Build.Exceptions.BuildAbortedException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message.

innerException
Exception

The inner exception.

Applies to