C# Класс Cornerstone.Extensions.IO.FileSystemInfoExtensions

Показать файл Открыть проект

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

Метод Описание
Exists ( this self, string compareSerial ) : bool

Get a value indicating whether the current file exists on the same volume.

GetDriveInfo ( this self ) : DriveInfo

Gets the DriveInfo object related to this instance

GetDriveLetter ( this self ) : string

Gets the driveletter of this instance

GetDriveVolumeSerial ( this self ) : string

Returns the volume serial of the drive where this path resides or empty if no serial is found.

IsOpticalPath ( this self ) : bool

Gets a value indicating wether this FileSystemInfo object is located on a optical drive.

IsRemovablePath ( this self ) : bool

Gets a value indicating wether this FileSystemInfo object is located on a removable drive.

IsReparsePoint ( this self ) : bool

Gets a value indicating whether this filesysteminfo object is a reparse point

IsUncPath ( this self ) : bool

Gets a value indicating whether the current path is formatted as UNC

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

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

Get a value indicating whether the current file exists on the same volume.
public static Exists ( this self, string compareSerial ) : bool
self this
compareSerial string
Результат bool

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

Gets the DriveInfo object related to this instance
public static GetDriveInfo ( this self ) : DriveInfo
self this
Результат System.IO.DriveInfo

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

Gets the driveletter of this instance
public static GetDriveLetter ( this self ) : string
self this
Результат string

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

Returns the volume serial of the drive where this path resides or empty if no serial is found.
public static GetDriveVolumeSerial ( this self ) : string
self this
Результат string

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

Gets a value indicating wether this FileSystemInfo object is located on a optical drive.
public static IsOpticalPath ( this self ) : bool
self this
Результат bool

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

Gets a value indicating wether this FileSystemInfo object is located on a removable drive.
public static IsRemovablePath ( this self ) : bool
self this
Результат bool

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

Gets a value indicating whether this filesysteminfo object is a reparse point
public static IsReparsePoint ( this self ) : bool
self this
Результат bool

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

Gets a value indicating whether the current path is formatted as UNC
public static IsUncPath ( this self ) : bool
self this
Результат bool