BuildAbortedException Class

Definition

An exception representing the case where the build was aborted by request, as opposed to being unceremoniously shut down due to another kind of error exception.

C#
[System.Serializable]
public class BuildAbortedException : Exception
C#
[System.Serializable]
public class BuildAbortedException : Microsoft.Build.Framework.BuildException.BuildExceptionBase
Inheritance
BuildAbortedException
Inheritance
BuildAbortedException
Attributes

Remarks

This is public because it may be returned in the Exceptions collection of a BuildResult. If you add fields to this class, add a custom serialization constructor and override GetObjectData().

Constructors

BuildAbortedException()

Constructs a standard BuildAbortedException.

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(String)

Constructs a BuildAbortedException with an additional message attached.

Properties

ErrorCode

Gets the error code (if any) associated with the exception message.

StackTrace (Inherited from BuildExceptionBase)

Methods

FlushCustomState()
GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

ISerializable method which we must override since Exception implements this interface If we ever add new members to this class, we'll need to update this.

InitializeCustomState(IDictionary<String,String>)
ToString() (Inherited from BuildExceptionBase)

Applies to

Ü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