The location of an XML node in a file.
Any editing of the project XML through the MSBuild API's will invalidate locations in that XML until the XML is reloaded.
Assembly: Microsoft.Build (in Microsoft.Build.dll)
Thetype exposes the following members.
|Column||The column number where this element exists in its file. The first column is numbered 1. Zero indicates "unknown location".|
|File||The file from which this particular element originated. It may differ from the ProjectFile if, for instance, it was part of an import or originated in a targets file. If not known, returns empty string.|
|Line||The line number where this element exists in its file. The first line is numbered 1. Zero indicates "unknown location".|
|LocationString||The location in a form suitable for replacement into a message. Example: "c:\dir\proj.csproj (12,34)" Calling this creates and formats a new string. Only in rare cases should the location go within the message itself.|
|Equals||Override Equals so that identical fields imply equal objects. (Overrides Object.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Get reasonable hash code. (Overrides Object.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Location of element. (Overrides Object.ToString().)|
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.