共用方式為


InvalidProjectFileException Constructor (XmlNode, String, String, String, String)

Initializes a new instance of InvalidProjectFileException class 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.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

Syntax

'Declaration
Public Sub New ( _
    xmlNode As XmlNode, _
    message As String, _
    errorSubcategory As String, _
    errorCode As String, _
    helpKeyword As String _
)
public InvalidProjectFileException(
    XmlNode xmlNode,
    string message,
    string errorSubcategory,
    string errorCode,
    string helpKeyword
)
public:
InvalidProjectFileException(
    XmlNode^ xmlNode, 
    String^ message, 
    String^ errorSubcategory, 
    String^ errorCode, 
    String^ helpKeyword
)
new : 
        xmlNode:XmlNode * 
        message:string * 
        errorSubcategory:string * 
        errorCode:string * 
        helpKeyword:string -> InvalidProjectFileException
public function InvalidProjectFileException(
    xmlNode : XmlNode, 
    message : String, 
    errorSubcategory : String, 
    errorCode : String, 
    helpKeyword : String
)

Parameters

  • xmlNode
    Type: XmlNode

    The XML node where the error is located. Can be null.

  • message
    Type: System.String

    The error message text for the exception.

  • errorSubcategory
    Type: System.String

    A description for the error. This parameter can be a null reference (Nothing in Visual Basic).

  • errorCode
    Type: System.String

    The error code. This parameter can be a null reference (Nothing).

  • helpKeyword
    Type: System.String

    The F1-help keyword for the host IDE. Can be null.

Remarks

This constructor is preferred over the basic constructors.

.NET Framework Security

See Also

Reference

InvalidProjectFileException Class

InvalidProjectFileException Overload

Microsoft.Build.BuildEngine Namespace