다음을 통해 공유


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()

Source:
InvalidProjectFileException.cs

Default constructor.

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

Remarks

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

Applies to

InvalidProjectFileException(String)

Source:
InvalidProjectFileException.cs

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

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

Parameters

message
String
Attributes

Remarks

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

Applies to

InvalidProjectFileException(String, Exception)

Source:
InvalidProjectFileException.cs

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);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public InvalidProjectFileException (string message, Exception innerException);
new Microsoft.Build.Exceptions.InvalidProjectFileException : string * Exception -> Microsoft.Build.Exceptions.InvalidProjectFileException
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
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
Attributes

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)

Source:
InvalidProjectFileException.cs

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);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
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
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
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).

Attributes

Remarks

This constructor is preferred over the basic constructors.

Applies to