Наследование: System.Management.Automation.PSDriveInfo
Пример #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);
            }
        }
Пример #2
0
 protected override void Stop()
 {
     this.rootDrive = null;
 }
Пример #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;
     }
 }
Пример #4
0
 protected override void Stop()
 {
     rootDrive = null;
 }