C# Class OpenBveApi.Path

Provides structures, enumerations and functions for cross-platform file access.
Afficher le fichier Open project: leezer3/OpenBVE Class Usage Examples

Méthodes publiques

Méthode Description
CombineDirectory ( string absolute, string relative ) : string

Combines a platform-specific absolute path with a platform-independent relative path that points to a directory.

CombineFile ( string absolute, string relative ) : string

Combines a platform-specific absolute path with a platform-independent relative path that points to a file.

SetPackageLookupDirectories ( string names, string directories, object authentication ) : object

Provides a list of package names and associated directories.

Private Methods

Méthode Description
IsAllPeriods ( string text ) : bool

Checks whether the specified string consists only of periods.

ResolvePackageReference ( string &absolute, string &relative ) : void

Resolves a package reference in the relative path and adjusts the absolute path if found.

Method Details

CombineDirectory() public static méthode

Combines a platform-specific absolute path with a platform-independent relative path that points to a directory.
Raised when combining the paths failed, for example due to malformed paths or due to unauthorized access.
public static CombineDirectory ( string absolute, string relative ) : string
absolute string The platform-specific absolute path.
relative string The platform-independent relative path.
Résultat string

CombineFile() public static méthode

Combines a platform-specific absolute path with a platform-independent relative path that points to a file.
Raised when combining the paths failed, for example due to malformed paths or due to unauthorized access.
public static CombineFile ( string absolute, string relative ) : string
absolute string The platform-specific absolute path.
relative string The platform-independent relative path.
Résultat string

SetPackageLookupDirectories() public static méthode

Provides a list of package names and associated directories.
Raised when the authentication failed.
public static SetPackageLookupDirectories ( string names, string directories, object authentication ) : object
names string The list of names.
directories string The list of fully qualified directories.
authentication object A null reference on the first process-wide call to this function, otherwise the object returned by this function in the previous call.
Résultat object