BuildErrorEventArgs Constructor (String, String, String, Int32, Int32, Int32, Int32, String, String, String)
Initializes a new instance of the BuildErrorEventArgs class with the specified SubCategory, Code, File, LineNumber, ColumnNumber, EndLineNumber, EndColumnNumber, Message, HelpKeyword, and SenderName values.
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.Framework
Assembly: Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)
Syntax
'Declaration
Public Sub New ( _
subcategory As String, _
code As String, _
file As String, _
lineNumber As Integer, _
columnNumber As Integer, _
endLineNumber As Integer, _
endColumnNumber As Integer, _
message As String, _
helpKeyword As String, _
senderName As String _
)
public BuildErrorEventArgs(
string subcategory,
string code,
string file,
int lineNumber,
int columnNumber,
int endLineNumber,
int endColumnNumber,
string message,
string helpKeyword,
string senderName
)
public:
BuildErrorEventArgs(
String^ subcategory,
String^ code,
String^ file,
int lineNumber,
int columnNumber,
int endLineNumber,
int endColumnNumber,
String^ message,
String^ helpKeyword,
String^ senderName
)
new :
subcategory:string *
code:string *
file:string *
lineNumber:int *
columnNumber:int *
endLineNumber:int *
endColumnNumber:int *
message:string *
helpKeyword:string *
senderName:string -> BuildErrorEventArgs
public function BuildErrorEventArgs(
subcategory : String,
code : String,
file : String,
lineNumber : int,
columnNumber : int,
endLineNumber : int,
endColumnNumber : int,
message : String,
helpKeyword : String,
senderName : String
)
Parameters
subcategory
Type: System.StringThe custom subcategory of the event.
code
Type: System.StringThe error code of the event.
file
Type: System.StringThe name of the file associated with the event.
lineNumber
Type: System.Int32The line number that corresponds to the beginning of the section of code that raised the event.
columnNumber
Type: System.Int32The column number that corresponds to the beginning of the section of code that raised the event.
endLineNumber
Type: System.Int32The line number that corresponds to the end of the section of code that raised the event.
endColumnNumber
Type: System.Int32The column number that corresponds to the end of the section of code that raised the event.
message
Type: System.StringThe text of the event.
helpKeyword
Type: System.StringThe Help keyword associated with the event.
senderName
Type: System.StringThe source of the event.
.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.