Task Constructor (Exception)

Initializes a new instance of Task for the supplied exception.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Sub New ( _
    error As Exception _
)
'使用
Dim error As Exception

Dim instance As New Task(error)
public Task(
    Exception error
)
public:
Task(
    Exception^ error
)
public function Task(
    error : Exception
)

Parameters

Remarks

This method extracts the available information from the exception to fill in the task properties.

Permissions

See Also

Reference

Task Class

Task Members

Task Overload

Microsoft.VisualStudio.Shell Namespace