This documentation is archived and is not being maintained.

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

Initializes a new instance of InvalidProjectFileException class using rich error information.

Namespace:  Microsoft.Build.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

public InvalidProjectFileException(
	XmlNode xmlNode,
	string message,
	string errorSubcategory,
	string errorCode,
	string helpKeyword
)

Parameters

xmlNode
Type: System.Xml.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.

This constructor is preferred over the basic constructors.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: