InvalidProjectFileException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of InvalidProjectFileException class.
Overloads
InvalidProjectFileException() |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Default constructor. |
InvalidProjectFileException(String) |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Creates an instance of this exception using the specified error message. |
InvalidProjectFileException(String, Exception) |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Creates an instance of this exception using the specified error message and inner exception. |
InvalidProjectFileException(XmlNode, String, String, String, String) |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Creates an instance of this exception using rich error information. |
InvalidProjectFileException(String, Int32, Int32, Int32, Int32, String, String, String, String) |
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Creates an instance of this exception using rich error information. |
InvalidProjectFileException()
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution
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)
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution 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.BuildEngine.InvalidProjectFileException : string -> Microsoft.Build.BuildEngine.InvalidProjectFileException
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.InvalidProjectFileException : string -> Microsoft.Build.BuildEngine.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)
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution 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.BuildEngine.InvalidProjectFileException : string * Exception -> Microsoft.Build.BuildEngine.InvalidProjectFileException
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
new Microsoft.Build.BuildEngine.InvalidProjectFileException : string * Exception -> Microsoft.Build.BuildEngine.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(XmlNode, String, String, String, String)
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution
Creates an instance of this exception 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 (can be null).
- 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
InvalidProjectFileException(String, Int32, Int32, Int32, Int32, String, String, String, String)
This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution
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.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 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.