IMSBuildElementLocation Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the location information for error reporting purposes. This is normally used to associate a run-time error with the original XML. This is not used for arbitrary errors from tasks, which store location in a BuildXXXXEventArgs. All implementations should be IMMUTABLE. Any editing of the project XML through the MSBuild API's will invalidate locations in that XML until the XML is reloaded.
public interface class IMSBuildElementLocation
public interface IMSBuildElementLocation
type IMSBuildElementLocation = interface
Public Interface IMSBuildElementLocation
- Derived
Properties
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. Should always have a value. 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. |