C# Class NAnt.Core.Location

Afficher le fichier Open project: skolima/NAnt Class Usage Examples

Méthodes publiques

Свойство Type Description
UnknownLocation Location

Méthodes publiques

Méthode Description
Location ( string fileName ) : System

Creates a location consisting of a file name.

fileName can be a local URI resource, e.g., file:///C:/WINDOWS/setuplog.txt.

Location ( string fileName, int lineNumber, int columnNumber ) : System

Creates a location consisting of a file name, line number and column number.

fileName can be a local URI resource, e.g., file:///C:/WINDOWS/setuplog.txt.

ToString ( ) : string

Returns the file name, line number and a trailing space. An error message can be appended easily. For unknown locations, returns an empty string.

Private Methods

Méthode Description
Init ( string fileName, int lineNumber, int columnNumber ) : void

Private Init function.

Location ( ) : System

Creates an "unknown" location.

Method Details

Location() public méthode

Creates a location consisting of a file name.
fileName can be a local URI resource, e.g., file:///C:/WINDOWS/setuplog.txt.
public Location ( string fileName ) : System
fileName string
Résultat System

Location() public méthode

Creates a location consisting of a file name, line number and column number.
fileName can be a local URI resource, e.g., file:///C:/WINDOWS/setuplog.txt.
public Location ( string fileName, int lineNumber, int columnNumber ) : System
fileName string
lineNumber int
columnNumber int
Résultat System

ToString() public méthode

Returns the file name, line number and a trailing space. An error message can be appended easily. For unknown locations, returns an empty string.
public ToString ( ) : string
Résultat string

Property Details

UnknownLocation public_oe static_oe property

public static Location,NAnt.Core UnknownLocation
Résultat Location