protected override Collection<PSDriveInfo> InitializeDefaultDrives()
{
NewDriveDynamicParameters();
try{
Collection<PSDriveInfo> result = new Collection<PSDriveInfo>();
PSDriveInfo drive =
new PSDriveInfo(
"UIA",
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;
}
}