InvalidProjectFileException Constructors

Definition

Initializes a new instance of InvalidProjectFileException class.

Overloads

InvalidProjectFileException()

Initializes a new instance of InvalidProjectFileException class.

InvalidProjectFileException(String)

Initializes a new instance of InvalidProjectFileException class using the specified message.

InvalidProjectFileException(String, Exception)

Initializes a new instance of InvalidProjectFileException class using the specified error message and inner exception.

InvalidProjectFileException(XmlNode, String, String, String, String)

Initializes a new instance of InvalidProjectFileException class using rich error information.

InvalidProjectFileException(String, Int32, Int32, Int32, Int32, String, String, String, String)

Initializes a new instance of InvalidProjectFileException class using rich error information.

InvalidProjectFileException()

Initializes a new instance of InvalidProjectFileException class.

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

InvalidProjectFileException(String)

Initializes a new instance of InvalidProjectFileException class using the specified message.

public:
 InvalidProjectFileException(System::String ^ message);
public InvalidProjectFileException (string message);
new Microsoft.Build.BuildEngine.InvalidProjectFileException : string -> Microsoft.Build.BuildEngine.InvalidProjectFileException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

InvalidProjectFileException(String, Exception)

Initializes a new instance of InvalidProjectFileException class using the specified error message and inner exception.

public:
 InvalidProjectFileException(System::String ^ message, Exception ^ innerException);
public InvalidProjectFileException (string message, Exception innerException);
new Microsoft.Build.BuildEngine.InvalidProjectFileException : string * Exception -> Microsoft.Build.BuildEngine.InvalidProjectFileException
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 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.

InvalidProjectFileException(XmlNode, String, String, String, String)

Initializes a new instance of InvalidProjectFileException class using rich error information.

public:
 InvalidProjectFileException(System::Xml::XmlNode ^ xmlNode, System::String ^ message, System::String ^ errorSubcategory, System::String ^ errorCode, System::String ^ helpKeyword);
public InvalidProjectFileException (System.Xml.XmlNode xmlNode, string message, string errorSubcategory, string errorCode, string helpKeyword);
new Microsoft.Build.BuildEngine.InvalidProjectFileException : System.Xml.XmlNode * string * string * string * string -> Microsoft.Build.BuildEngine.InvalidProjectFileException
Public Sub New (xmlNode As XmlNode, message As String, errorSubcategory As String, errorCode As String, helpKeyword As String)

Parameters

xmlNode
XmlNode

The XML node where the error is located. Can be null.

message
String

The error message text for the exception.

errorSubcategory
String

A description for the error. This parameter can be a null reference (Nothing in Visual Basic).

errorCode
String

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

helpKeyword
String

The F1-help keyword for the host IDE. Can be null.

Remarks

This constructor is preferred over the basic constructors.

InvalidProjectFileException(String, Int32, Int32, Int32, Int32, String, String, String, String)

Initializes a new instance of InvalidProjectFileException class using rich error information.

public:
 InvalidProjectFileException(System::String ^ projectFile, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, System::String ^ message, System::String ^ errorSubcategory, System::String ^ errorCode, System::String ^ helpKeyword);
public InvalidProjectFileException (string projectFile, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string message, string errorSubcategory, string errorCode, string helpKeyword);
new Microsoft.Build.BuildEngine.InvalidProjectFileException : string * int * int * int * int * string * string * string * string -> Microsoft.Build.BuildEngine.InvalidProjectFileException
Public Sub New (projectFile As String, lineNumber As Integer, columnNumber As Integer, endLineNumber As Integer, endColumnNumber As Integer, message As String, errorSubcategory As String, errorCode As String, helpKeyword As String)

Parameters

projectFile
String

The invalid project file. Can be an empty string.

lineNumber
Int32

The invalid line number in the project. Set to zero if not available.

columnNumber
Int32

The invalid column number in the project. Set to zero if not available.

endLineNumber
Int32

The end of a range of invalid lines in the project. Set to zero if not available.

endColumnNumber
Int32

The end of a range of invalid columns in the project. Set to zero if not available.

message
String

The error message text for the exception.

errorSubcategory
String

The description of the error. This parameter can be a null reference (Nothing in Visual Basic).

errorCode
String

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

helpKeyword
String

The F1-help keyword for the host IDE. This parameter can be a null reference (Nothing).

Remarks

This constructor is preferred over the basic constructors.

Applies to