InvalidProjectFileException Constructors

Definition

This constructor only exists to satisfy .NET coding guidelines. Use a rich constructor whenever possible.

Overloads

InvalidProjectFileException()

Default constructor.

InvalidProjectFileException(String)

Creates an instance of this exception using the specified error message.

InvalidProjectFileException(String, Exception)

Creates an instance of this exception using the specified error message and inner exception.

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

Creates an instance of this exception using rich error information.

InvalidProjectFileException()

Default constructor.

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

Remarks

This constructor only exists to satisfy .NET coding guidelines. Use a rich constructor whenever possible.

Applies to

InvalidProjectFileException(String)

Creates an instance of this exception using the specified error message.

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

Parameters

message
String

Remarks

This constructor only exists to satisfy .NET coding guidelines. Use a rich constructor whenever possible.

Applies to

InvalidProjectFileException(String, Exception)

Creates an instance of this exception using the specified error message and inner exception.

public:
 InvalidProjectFileException(System::String ^ message, Exception ^ innerException);
public InvalidProjectFileException (string message, Exception innerException);
new Microsoft.Build.Exceptions.InvalidProjectFileException : string * Exception -> Microsoft.Build.Exceptions.InvalidProjectFileException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String
innerException
Exception

Remarks

This constructor only exists to satisfy .NET coding guidelines. Use a rich constructor whenever possible.

Applies to

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

Creates an instance of this exception 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.Exceptions.InvalidProjectFileException : string * int * int * int * int * string * string * string * string -> Microsoft.Build.Exceptions.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 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

Error message for exception.

errorSubcategory
String

Error sub-category that describes the error (can be null).

errorCode
String

The error code (can be null).

helpKeyword
String

The F1-help keyword for the host IDE (can be null).

Remarks

This constructor is preferred over the basic constructors.

Applies to