Freigeben über


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.String

    The custom subcategory of the event.

  • file
    Type: System.String

    The name of the file associated with the event.

  • lineNumber
    Type: System.Int32

    The line number that corresponds to the beginning of the section of code that raised the event.

  • columnNumber
    Type: System.Int32

    The column number that corresponds to the beginning of the section of code that raised the event.

  • endLineNumber
    Type: System.Int32

    The line number that corresponds to the end of the section of code that raised the event.

  • endColumnNumber
    Type: System.Int32

    The column number that corresponds to the end of the section of code that raised the event.

  • helpKeyword
    Type: System.String

    The Help keyword associated with the event.

.NET Framework Security

See Also

Reference

BuildErrorEventArgs Class

BuildErrorEventArgs Overload

Microsoft.Build.Framework Namespace