C# Class Tmx.TmxProvider

Inheritance: System.Management.Automation.Provider.ItemCmdletProvider
Datei anzeigen Open project: apetrovskiy/STUPS

Protected Methods

Method Description
InitializeDefaultDrives ( ) : Collection
IsValidPath ( string path ) : bool

Callback used to verify the syntax of a path. This method is usually invoked before the callback method for the cmdlet(ie set-item, clear-item)

ItemExists ( string path ) : bool

test-path cmdlet callback

NewDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
NewDriveDynamicParameters ( ) : object
RemoveDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo

The Windows PowerShell engine calls this method when the Remove-PSDrive cmdlet is run and the path to this provider is specified. This method closes the ODBC connection of the drive.

Start ( System.Management.Automation.ProviderInfo providerInfo ) : System.Management.Automation.ProviderInfo
Stop ( ) : void

Private Methods

Method Description
GetTheRestOfPathWihoutDrive ( string path ) : string
GetTheRestOfPathWihoutProvider ( string path ) : string

Method Details

InitializeDefaultDrives() protected method

protected InitializeDefaultDrives ( ) : Collection
return Collection

IsValidPath() protected method

Callback used to verify the syntax of a path. This method is usually invoked before the callback method for the cmdlet(ie set-item, clear-item)
protected IsValidPath ( string path ) : bool
path string
return bool

ItemExists() protected method

test-path cmdlet callback
protected ItemExists ( string path ) : bool
path string
return bool

NewDrive() protected method

protected NewDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
drive System.Management.Automation.PSDriveInfo
return System.Management.Automation.PSDriveInfo

NewDriveDynamicParameters() protected method

protected NewDriveDynamicParameters ( ) : object
return object

RemoveDrive() protected method

The Windows PowerShell engine calls this method when the Remove-PSDrive cmdlet is run and the path to this provider is specified. This method closes the ODBC connection of the drive.
protected RemoveDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
drive System.Management.Automation.PSDriveInfo The drive to remove.
return System.Management.Automation.PSDriveInfo

Start() protected method

protected Start ( System.Management.Automation.ProviderInfo providerInfo ) : System.Management.Automation.ProviderInfo
providerInfo System.Management.Automation.ProviderInfo
return System.Management.Automation.ProviderInfo

Stop() protected method

protected Stop ( ) : void
return void