Share via


TaskException Class

 

Indicates that an error occurred while running a Task.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.WindowsServerSolutions.Administration.ObjectModel.ConsoleException
      Microsoft.WindowsServerSolutions.Administration.ObjectModel.TaskException

Syntax

[SerializableAttribute]
public sealed class TaskException : ConsoleException
[SerializableAttribute]
public ref class TaskException sealed : ConsoleException
<SerializableAttribute>
Public NotInheritable Class TaskException
    Inherits ConsoleException

Constructors

Name Description
System_CAPS_pubmethod TaskException(String)

Initializes a new instance of the TaskException class with the specified string that contains the error message that will be displayed.

System_CAPS_pubmethod TaskException(String, Exception)

Initializes a new instance of the TaskException class with the specified error message and the specified exception that is the cause of the current exception.

Properties

Name Description
System_CAPS_pubproperty Data

(Inherited from Exception.)

System_CAPS_pubproperty HelpLink

(Inherited from Exception.)

System_CAPS_pubproperty HResult

(Inherited from Exception.)

System_CAPS_pubproperty InnerException

(Inherited from Exception.)

System_CAPS_pubproperty Message

(Inherited from Exception.)

System_CAPS_pubproperty Source

(Inherited from Exception.)

System_CAPS_pubproperty StackTrace

(Inherited from Exception.)

System_CAPS_pubproperty TargetSite

(Inherited from Exception.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethod GetType()

(Inherited from Exception.)

System_CAPS_pubmethod ToString()

(Inherited from Exception.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top