Inheritance: System.Management.Automation.PSDriveInfo
Example #1
0
        protected override Collection <PSDriveInfo> InitializeDefaultDrives()
        {
            NewDriveDynamicParameters();

            try{
                var result = new Collection <PSDriveInfo>();
                var drive  =
                    new PSDriveInfo(
                        "TMX",
                        ProviderInfo,
                        @"TMX\TmxProvider::\",
                        "This is the TMX root drive",
                        null);
                rootDrive = new TmxDriveInfo(drive);
                result.Add(rootDrive);
                return(result);
            }
            catch (Exception e) {
                WriteVerbose(e.Message);
                WriteVerbose("TmxProvider::InitializeDefaultDrives()");
                return(null);
            }
        }
Example #2
0
 protected override void Stop()
 {
     this.rootDrive = null;
 }
Example #3
0
 protected override Collection<PSDriveInfo> InitializeDefaultDrives()
 {
     
     NewDriveDynamicParameters();
     
     try{
         var result = new Collection<PSDriveInfo>();
         var drive =
             new PSDriveInfo(
                 "TMX",
                 ProviderInfo,
                 @"TMX\TmxProvider::\",
                 "This is the TMX root drive",
                 null);
         rootDrive = new TmxDriveInfo(drive);
         result.Add(rootDrive);
         return result;
     }
     catch (Exception e) {
         WriteVerbose(e.Message);
         WriteVerbose("TmxProvider::InitializeDefaultDrives()");
         return null;
     }
 }
Example #4
0
 protected override void Stop()
 {
     rootDrive = null;
 }