InvalidToolsetDefinitionException Constructors

Definition

Initializes a new instance of the InvalidToolsetDefinitionException class.

Overloads

InvalidToolsetDefinitionException()

Initializes a new instance of the InvalidToolsetDefinitionException class.

InvalidToolsetDefinitionException(String)

Initializes a new instance of the InvalidToolsetDefinitionException class.

InvalidToolsetDefinitionException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidToolsetDefinitionException class.

InvalidToolsetDefinitionException(String, Exception)

Initializes a new instance of the InvalidToolsetDefinitionException class.

InvalidToolsetDefinitionException(String, String)

Initializes a new instance of the InvalidToolsetDefinitionException class.

InvalidToolsetDefinitionException(String, String, Exception)

Initializes a new instance of the InvalidToolsetDefinitionException class.

InvalidToolsetDefinitionException()

Initializes a new instance of the InvalidToolsetDefinitionException class.

public:
 InvalidToolsetDefinitionException();
public InvalidToolsetDefinitionException ();
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public InvalidToolsetDefinitionException ();
Public Sub New ()
Attributes

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply" This message takes into account the current system culture.

The following table shows the initial property values for an instance of InsufficientMemoryException.

Property Value
InnerException null.
Message The localized error message string.

Applies to

InvalidToolsetDefinitionException(String)

Initializes a new instance of the InvalidToolsetDefinitionException class.

public:
 InvalidToolsetDefinitionException(System::String ^ message);
public InvalidToolsetDefinitionException (string message);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public InvalidToolsetDefinitionException (string message);
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Attributes

Remarks

The following table shows the initial property values for an instance of InvalidToolsetDefinitionException.

Property Value
InnerException null.
Message The error message string specified in message.

Applies to

InvalidToolsetDefinitionException(SerializationInfo, StreamingContext)

Initializes a new instance of the InvalidToolsetDefinitionException class.

protected:
 InvalidToolsetDefinitionException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InvalidToolsetDefinitionException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
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.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization.

See also

Applies to

InvalidToolsetDefinitionException(String, Exception)

Initializes a new instance of the InvalidToolsetDefinitionException class.

public:
 InvalidToolsetDefinitionException(System::String ^ message, Exception ^ innerException);
public InvalidToolsetDefinitionException (string message, Exception innerException);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public InvalidToolsetDefinitionException (string message, Exception innerException);
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string * Exception -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string * Exception -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The error code. This parameter can be a null reference (Nothing).

Attributes

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of InvalidToolsetDefinitionException.

Property Value
InnerException null.
Message The error message string specified in message.

See also

Applies to

InvalidToolsetDefinitionException(String, String)

Initializes a new instance of the InvalidToolsetDefinitionException class.

public:
 InvalidToolsetDefinitionException(System::String ^ message, System::String ^ errorCode);
public InvalidToolsetDefinitionException (string message, string errorCode);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public InvalidToolsetDefinitionException (string message, string errorCode);
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string * string -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string * string -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
Public Sub New (message As String, errorCode As String)

Parameters

message
String

The error message that explains the reason for the exception.

errorCode
String

The error code. This parameter can be a null reference (Nothing).

Attributes

Applies to

InvalidToolsetDefinitionException(String, String, Exception)

Initializes a new instance of the InvalidToolsetDefinitionException class.

public:
 InvalidToolsetDefinitionException(System::String ^ message, System::String ^ errorCode, Exception ^ innerException);
public InvalidToolsetDefinitionException (string message, string errorCode, Exception innerException);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public InvalidToolsetDefinitionException (string message, string errorCode, Exception innerException);
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string * string * Exception -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException : string * string * Exception -> Microsoft.Build.BuildEngine.InvalidToolsetDefinitionException
Public Sub New (message As String, errorCode As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

errorCode
String

The error code. This parameter can be a null reference (Nothing).

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Attributes

Applies to