TaskSchedulingException Constructors

Definition

Overloads

TaskSchedulingException()

Initializes a new instance of the TaskSchedulingException class.

TaskSchedulingException(String)

Initializes a new instance of the TaskSchedulingException class with a specified error message.

TaskSchedulingException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the TaskSchedulingException class with serialized data.

TaskSchedulingException()

Initializes a new instance of the TaskSchedulingException class.

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

Applies to

TaskSchedulingException(String)

Initializes a new instance of the TaskSchedulingException class with a specified error message.

public:
 TaskSchedulingException(System::String ^ message);
public:
 TaskSchedulingException(Platform::String ^ message);
 TaskSchedulingException(std::wstring const & message);
public TaskSchedulingException (string message);
new Microsoft.VisualStudio.Shell.TaskSchedulingException : string -> Microsoft.VisualStudio.Shell.TaskSchedulingException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

TaskSchedulingException(SerializationInfo, StreamingContext)

Caution

This API is now deprecated.

Initializes a new instance of the TaskSchedulingException class with serialized data.

protected:
 TaskSchedulingException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TaskSchedulingException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete]
protected TaskSchedulingException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.Shell.TaskSchedulingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.Shell.TaskSchedulingException
[<System.Obsolete>]
new Microsoft.VisualStudio.Shell.TaskSchedulingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.Shell.TaskSchedulingException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Attributes

Applies to