C# Класс OpenBveApi.Path

Provides structures, enumerations and functions for cross-platform file access.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CombineDirectory() публичный статический Метод

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.
Результат string

CombineFile() публичный статический Метод

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.
Результат string

SetPackageLookupDirectories() публичный статический Метод

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.
Результат object