InvalidProjectFileException Constructor (String, Int32, Int32, Int32, Int32, String, String, String, String)
Creates an instance of this exception using rich error information.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Namespace: Microsoft.Build.Exceptions
Assembly: Microsoft.Build (in Microsoft.Build.dll)
Syntax
'Declaration
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 _
)
public InvalidProjectFileException(
string projectFile,
int lineNumber,
int columnNumber,
int endLineNumber,
int endColumnNumber,
string message,
string errorSubcategory,
string errorCode,
string helpKeyword
)
public:
InvalidProjectFileException(
String^ projectFile,
int lineNumber,
int columnNumber,
int endLineNumber,
int endColumnNumber,
String^ message,
String^ errorSubcategory,
String^ errorCode,
String^ helpKeyword
)
new :
projectFile:string *
lineNumber:int *
columnNumber:int *
endLineNumber:int *
endColumnNumber:int *
message:string *
errorSubcategory:string *
errorCode:string *
helpKeyword:string -> InvalidProjectFileException
public function InvalidProjectFileException(
projectFile : String,
lineNumber : int,
columnNumber : int,
endLineNumber : int,
endColumnNumber : int,
message : String,
errorSubcategory : String,
errorCode : String,
helpKeyword : String
)
Parameters
projectFile
Type: System.StringThe invalid project file (can be empty string).
lineNumber
Type: System.Int32The invalid line number in the project (set to zero if not available).
columnNumber
Type: System.Int32The invalid column number in the project (set to zero if not available).
endLineNumber
Type: System.Int32The end of a range of invalid lines in the project (set to zero if not available).
endColumnNumber
Type: System.Int32The end of a range of invalid columns in the project (set to zero if not available).
message
Type: System.StringError message for exception.
errorSubcategory
Type: System.StringError sub-category that describes the error (can be null).
errorCode
Type: System.StringThe error code (can be null).
helpKeyword
Type: System.StringThe F1-help keyword for the host IDE (can be null).
Remarks
This constructor is preferred over the basic constructors.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.
See Also
Reference
InvalidProjectFileException Class