private UIADriveInfo uIAPSDriveInfo; // ??????????????? #endregion Fields #region Methods protected override Collection<PSDriveInfo> InitializeDefaultDrives() { NewDriveDynamicParameters(); try{ Collection<PSDriveInfo> result = new Collection<PSDriveInfo>(); PSDriveInfo drive = new PSDriveInfo( "UIA", this.ProviderInfo, @"UIAutomation\UIAProvider::\", //"UIAutomation", "This is the UI Automation root drive", null); rootDrive = new UIADriveInfo(drive); result.Add(rootDrive); return result; } catch (Exception e) { WriteVerbose(e.Message); WriteVerbose("UIAProvider::InitializeDefaultDrives()"); return null; } }
protected override void Stop() { this.rootDrive = null; }