C# Class fs4net.Framework.Impl.DriveParser

Show file Open project: toroso/fs4net Class Usage Examples

Private Properties

Property Type Description
ExtractDriveLetter string
ExtractHostName string
ExtractMappedDrive string
ExtractNetworkDrive string
ExtractShareName string
ValidateDriveLetter void
ValidateFirstBackslashIsBeforeFirstColon void
ValidateHostName void
ValidatePathCharacters void
ValidateShareName void

Public Methods

Method Description
AppendTo ( string relativePath ) : string
DriveParser ( string rootedPath, Validator validator ) : System

Private Methods

Method Description
ExtractDriveLetter ( int positionOfFirstColon ) : string
ExtractHostName ( int endPos ) : string
ExtractMappedDrive ( ) : string

Returns mapped drive name if such exists.

ExtractNetworkDrive ( ) : string

Returns network drive name if such exists.

ExtractShareName ( int startPos ) : string
ValidateDriveLetter ( char driveLetter ) : void
ValidateFirstBackslashIsBeforeFirstColon ( int firstColon ) : void
ValidateHostName ( string hostName ) : void
ValidatePathCharacters ( string pathPart, string nameOfPathPart ) : void
ValidateShareName ( string shareName ) : void

Method Details

AppendTo() public method

public AppendTo ( string relativePath ) : string
relativePath string
return string

DriveParser() public method

public DriveParser ( string rootedPath, Validator validator ) : System
rootedPath string
validator Validator
return System