C# Class Cornerstone.Extensions.IO.FileSystemInfoExtensions

Afficher le fichier Open project: damienhaynes/moving-pictures

Méthodes publiques

Méthode Description
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

Method Details

Exists() public static méthode

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
Résultat bool

GetDriveInfo() public static méthode

Gets the DriveInfo object related to this instance
public static GetDriveInfo ( this self ) : DriveInfo
self this
Résultat System.IO.DriveInfo

GetDriveLetter() public static méthode

Gets the driveletter of this instance
public static GetDriveLetter ( this self ) : string
self this
Résultat string

GetDriveVolumeSerial() public static méthode

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
Résultat string

IsOpticalPath() public static méthode

Gets a value indicating wether this FileSystemInfo object is located on a optical drive.
public static IsOpticalPath ( this self ) : bool
self this
Résultat bool

IsRemovablePath() public static méthode

Gets a value indicating wether this FileSystemInfo object is located on a removable drive.
public static IsRemovablePath ( this self ) : bool
self this
Résultat bool

IsReparsePoint() public static méthode

Gets a value indicating whether this filesysteminfo object is a reparse point
public static IsReparsePoint ( this self ) : bool
self this
Résultat bool

IsUncPath() public static méthode

Gets a value indicating whether the current path is formatted as UNC
public static IsUncPath ( this self ) : bool
self this
Résultat bool