| |
| |
|
|
| using System; |
| using System.Collections.Generic; |
| using System.Collections.ObjectModel; |
| using System.Diagnostics; |
| using System.Diagnostics.CodeAnalysis; |
| using System.Globalization; |
| using System.IO; |
| using System.Linq; |
| using System.Management.Automation; |
| using System.Management.Automation.Help; |
| using System.Management.Automation.Internal; |
| using System.Management.Automation.Runspaces; |
| using System.Runtime.InteropServices; |
| #if !UNIX |
| using Microsoft.Win32; |
| #endif |
|
|
| namespace Microsoft.PowerShell.Commands |
| { |
| |
| |
| |
| [Cmdlet(VerbsCommon.Get, "Help", DefaultParameterSetName = "AllUsersView", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=2096483")] |
| public sealed class GetHelpCommand : PSCmdlet |
| { |
| |
| |
| |
| internal enum HelpView |
| { |
| Default = 0x00, |
| DetailedView = 0x01, |
| FullView = 0x02, |
| ExamplesView = 0x03 |
| } |
|
|
| |
| |
| |
| public GetHelpCommand() |
| { |
| } |
|
|
| #region Cmdlet Parameters |
|
|
| |
| |
| |
| [Parameter(Position = 0, ValueFromPipelineByPropertyName = true)] |
| [ValidateNotNullOrEmpty()] |
| public string Name { get; set; } = string.Empty; |
|
|
| |
| |
| |
| [Parameter] |
| public string Path { get; set; } |
|
|
| |
| |
| |
| [Parameter] |
| [ValidateSet( |
| "Alias", "Cmdlet", "Provider", "General", "FAQ", "Glossary", "HelpFile", "ScriptCommand", "Function", "Filter", "ExternalScript", "All", "DefaultHelp", "DscResource", "Class", "Configuration", |
| IgnoreCase = true)] |
| public string[] Category { get; set; } |
|
|
| private readonly string _provider = string.Empty; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| [Parameter(ParameterSetName = "DetailedView", Mandatory = true)] |
| public SwitchParameter Detailed |
| { |
| set |
| { |
| if (value.ToBool()) |
| { |
| _viewTokenToAdd = HelpView.DetailedView; |
| } |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| [Parameter(ParameterSetName = "AllUsersView")] |
| public SwitchParameter Full |
| { |
| set |
| { |
| if (value.ToBool()) |
| { |
| _viewTokenToAdd = HelpView.FullView; |
| } |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| [Parameter(ParameterSetName = "Examples", Mandatory = true)] |
| public SwitchParameter Examples |
| { |
| set |
| { |
| if (value.ToBool()) |
| { |
| _viewTokenToAdd = HelpView.ExamplesView; |
| } |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| |
| [Parameter(ParameterSetName = "Parameters", Mandatory = true)] |
| public string[] Parameter { get; set; } |
|
|
| |
| |
| |
| [Parameter] |
| public string[] Component { get; set; } |
|
|
| |
| |
| |
| [Parameter] |
| public string[] Functionality { get; set; } |
|
|
| |
| |
| |
| [Parameter] |
| public string[] Role { get; set; } |
|
|
| |
| |
| |
| |
| |
| [Parameter(ParameterSetName = "Online", Mandatory = true)] |
| public SwitchParameter Online |
| { |
| get |
| { |
| return _showOnlineHelp; |
| } |
|
|
| set |
| { |
| _showOnlineHelp = value; |
| if (_showOnlineHelp) |
| { |
| VerifyParameterForbiddenInRemoteRunspace(this, "Online"); |
| } |
| } |
| } |
|
|
| private bool _showOnlineHelp; |
|
|
| #if !UNIX |
| private GraphicalHostReflectionWrapper graphicalHostReflectionWrapper; |
| private bool showWindow; |
|
|
| |
| |
| |
| [Parameter(ParameterSetName = "ShowWindow", Mandatory = true)] |
| public SwitchParameter ShowWindow |
| { |
| get |
| { |
| return showWindow; |
| } |
|
|
| set |
| { |
| showWindow = value; |
| if (showWindow) |
| { |
| VerifyParameterForbiddenInRemoteRunspace(this, "ShowWindow"); |
| } |
| } |
| } |
| #endif |
|
|
| |
| private HelpView _viewTokenToAdd = HelpView.Default; |
|
|
| #if LEGACYTELEMETRY |
| private readonly Stopwatch _timer = new Stopwatch(); |
| private bool _updatedHelp; |
| #endif |
|
|
| #endregion |
|
|
| #region Cmdlet API implementation |
|
|
| |
| |
| |
| protected override void BeginProcessing() |
| { |
| #if LEGACYTELEMETRY |
| _timer.Start(); |
| #endif |
| } |
|
|
| |
| |
| |
| protected override void ProcessRecord() |
| { |
| #if !UNIX |
| string fileSystemPath = SessionState.Path.GetUnresolvedProviderPathFromPSPath(this.Name); |
| string normalizedName = FileSystemProvider.NormalizePath(fileSystemPath); |
| |
| if (Utils.IsSessionRestricted(this.Context) && (FileSystemProvider.PathIsNetworkPath(normalizedName) || Utils.PathIsDevicePath(normalizedName))) { |
| Exception e = new ArgumentException(HelpErrors.NoNetworkCommands, "Name"); |
| ErrorRecord errorRecord = new ErrorRecord(e, "CommandNameNotAllowed", ErrorCategory.InvalidArgument, null); |
| this.ThrowTerminatingError(errorRecord); |
| } |
| #endif |
|
|
| HelpSystem helpSystem = this.Context.HelpSystem; |
| try |
| { |
| #if !UNIX |
| if (this.ShowWindow) |
| { |
| this.graphicalHostReflectionWrapper = GraphicalHostReflectionWrapper.GetGraphicalHostReflectionWrapper(this, "Microsoft.PowerShell.Commands.Internal.HelpWindowHelper"); |
| } |
| #endif |
| helpSystem.OnProgress += HelpSystem_OnProgress; |
|
|
| bool failed = false; |
| HelpCategory helpCategory = ToHelpCategory(Category, ref failed); |
|
|
| if (failed) |
| return; |
|
|
| |
| ValidateAndThrowIfError(helpCategory); |
|
|
| HelpRequest helpRequest = new HelpRequest(this.Name, helpCategory); |
|
|
| helpRequest.Provider = _provider; |
| helpRequest.Component = Component; |
| helpRequest.Role = Role; |
| helpRequest.Functionality = Functionality; |
| helpRequest.ProviderContext = new ProviderContext( |
| this.Path, |
| this.Context.Engine.Context, |
| this.SessionState.Path); |
| helpRequest.CommandOrigin = this.MyInvocation.CommandOrigin; |
|
|
| |
| |
| |
| IEnumerable<HelpInfo> helpInfos = helpSystem.GetHelp(helpRequest); |
| |
| |
| |
| HelpInfo firstHelpInfoObject = null; |
| int countOfHelpInfos = 0; |
| foreach (HelpInfo helpInfo in helpInfos) |
| { |
| |
| if (IsStopping) |
| { |
| return; |
| } |
|
|
| if (countOfHelpInfos == 0) |
| { |
| firstHelpInfoObject = helpInfo; |
| } |
| else |
| { |
| |
| if (firstHelpInfoObject != null) |
| { |
| WriteObjectsOrShowOnlineHelp(firstHelpInfoObject, false); |
| firstHelpInfoObject = null; |
| } |
|
|
| WriteObjectsOrShowOnlineHelp(helpInfo, false); |
| } |
|
|
| countOfHelpInfos++; |
| } |
|
|
| #if LEGACYTELEMETRY |
| _timer.Stop(); |
|
|
| if (!string.IsNullOrEmpty(Name)) |
| Microsoft.PowerShell.Telemetry.Internal.TelemetryAPI.ReportGetHelpTelemetry(Name, countOfHelpInfos, _timer.ElapsedMilliseconds, _updatedHelp); |
| #endif |
| |
| if (countOfHelpInfos == 1) |
| { |
| WriteObjectsOrShowOnlineHelp(firstHelpInfoObject, true); |
| } |
| else if (_showOnlineHelp && (countOfHelpInfos > 1)) |
| { |
| throw PSTraceSource.NewInvalidOperationException(HelpErrors.MultipleOnlineTopicsNotSupported, "Online"); |
| } |
|
|
| |
| if (((countOfHelpInfos == 0) && (!WildcardPattern.ContainsWildcardCharacters(helpRequest.Target))) |
| || helpSystem.VerboseHelpErrors) |
| { |
| |
| |
| if (helpSystem.LastErrors.Count > 0) |
| { |
| foreach (ErrorRecord errorRecord in helpSystem.LastErrors) |
| { |
| WriteError(errorRecord); |
| } |
| } |
| } |
| } |
| finally |
| { |
| helpSystem.OnProgress -= HelpSystem_OnProgress; |
| HelpSystem_OnComplete(); |
|
|
| |
| helpSystem.ClearScriptBlockTokenCache(); |
| } |
| } |
|
|
| private HelpCategory ToHelpCategory(string[] category, ref bool failed) |
| { |
| if (category == null || category.Length == 0) |
| return HelpCategory.None; |
|
|
| HelpCategory helpCategory = HelpCategory.None; |
|
|
| failed = false; |
|
|
| for (int i = 0; i < category.Length; i++) |
| { |
| try |
| { |
| HelpCategory temp = (HelpCategory)Enum.Parse(typeof(HelpCategory), category[i], true); |
|
|
| helpCategory |= temp; |
| } |
| catch (ArgumentException argumentException) |
| { |
| Exception e = new HelpCategoryInvalidException(category[i], argumentException); |
| ErrorRecord errorRecord = new ErrorRecord(e, "InvalidHelpCategory", ErrorCategory.InvalidArgument, null); |
| this.WriteError(errorRecord); |
|
|
| failed = true; |
| } |
| } |
|
|
| return helpCategory; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| private PSObject TransformView(PSObject originalHelpObject) |
| { |
| Diagnostics.Assert(originalHelpObject != null, |
| "HelpObject should not be null"); |
|
|
| if (_viewTokenToAdd == HelpView.Default) |
| { |
| s_tracer.WriteLine("Detailed, Full, Examples are not selected. Constructing default view."); |
| return originalHelpObject; |
| } |
|
|
| string tokenToAdd = _viewTokenToAdd.ToString(); |
| |
| |
| |
| PSObject objectToReturn = originalHelpObject.Copy(); |
| objectToReturn.TypeNames.Clear(); |
|
|
| if (originalHelpObject.TypeNames.Count == 0) |
| { |
| string typeToAdd = string.Create(CultureInfo.InvariantCulture, $"HelpInfo#{tokenToAdd}"); |
| objectToReturn.TypeNames.Add(typeToAdd); |
| } |
| else |
| { |
| |
| foreach (string typeName in originalHelpObject.TypeNames) |
| { |
| |
| |
| if (typeName.ToLowerInvariant().Equals("system.string") || |
| typeName.ToLowerInvariant().Equals("system.object")) |
| { |
| continue; |
| } |
|
|
| string typeToAdd = string.Create(CultureInfo.InvariantCulture, $"{typeName}#{tokenToAdd}"); |
| s_tracer.WriteLine("Adding type {0}", typeToAdd); |
| objectToReturn.TypeNames.Add(typeToAdd); |
| } |
|
|
| |
| foreach (string typeName in originalHelpObject.TypeNames) |
| { |
| s_tracer.WriteLine("Adding type {0}", typeName); |
| objectToReturn.TypeNames.Add(typeName); |
| } |
| } |
|
|
| return objectToReturn; |
| } |
|
|
| |
| |
| |
| |
| |
| private PSObject[] GetParameterInfo(HelpInfo helpInfo) |
| { |
| List<PSObject> parameterInfosList = new List<PSObject>(Parameter.Length); |
|
|
| foreach (var parameter in Parameter) |
| { |
| foreach (var parameterInfo in helpInfo.GetParameter(parameter)) |
| { |
| parameterInfosList.Add(parameterInfo); |
| } |
| } |
|
|
| return parameterInfosList.ToArray(); |
| } |
|
|
| |
| |
| |
| |
| |
| |
| private void GetAndWriteParameterInfo(HelpInfo helpInfo) |
| { |
| s_tracer.WriteLine("Searching parameters for {0}", helpInfo.Name); |
|
|
| PSObject[] pInfos = GetParameterInfo(helpInfo); |
|
|
| if ((pInfos == null) || (pInfos.Length == 0)) |
| { |
| Exception innerException = PSTraceSource.NewArgumentException("Parameter", |
| HelpErrors.NoParmsFound, Parameter); |
| WriteError(new ErrorRecord(innerException, "NoParmsFound", ErrorCategory.InvalidArgument, helpInfo)); |
| } |
| else |
| { |
| foreach (PSObject pInfo in pInfos) |
| { |
| WriteObject(pInfo); |
| } |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| private void ValidateAndThrowIfError(HelpCategory cat) |
| { |
| if (cat == HelpCategory.None) |
| { |
| return; |
| } |
|
|
| |
| const HelpCategory supportedCategories = |
| HelpCategory.Alias | HelpCategory.Cmdlet | HelpCategory.ExternalScript | |
| HelpCategory.Filter | HelpCategory.Function | HelpCategory.ScriptCommand; |
|
|
| if ((cat & supportedCategories) == 0) |
| { |
| if (Parameter != null) |
| { |
| throw PSTraceSource.NewArgumentException("Parameter", |
| HelpErrors.ParamNotSupported, "-Parameter"); |
| } |
|
|
| if (Component != null) |
| { |
| throw PSTraceSource.NewArgumentException("Component", |
| HelpErrors.ParamNotSupported, "-Component"); |
| } |
|
|
| if (Role != null) |
| { |
| throw PSTraceSource.NewArgumentException("Role", |
| HelpErrors.ParamNotSupported, "-Role"); |
| } |
|
|
| if (Functionality != null) |
| { |
| throw PSTraceSource.NewArgumentException("Functionality", |
| HelpErrors.ParamNotSupported, "-Functionality"); |
| } |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| private void WriteObjectsOrShowOnlineHelp(HelpInfo helpInfo, bool showFullHelp) |
| { |
| if (helpInfo != null) |
| { |
| |
| |
| |
| if (showFullHelp && _showOnlineHelp) |
| { |
| bool onlineUriFound = false; |
| |
| s_tracer.WriteLine("Preparing to show help online."); |
| Uri onlineUri = helpInfo.GetUriForOnlineHelp(); |
| if (onlineUri != null) |
| { |
| onlineUriFound = true; |
| LaunchOnlineHelp(onlineUri); |
| return; |
| } |
|
|
| if (!onlineUriFound) |
| { |
| throw PSTraceSource.NewInvalidOperationException(HelpErrors.NoURIFound); |
| } |
| } |
| #if !UNIX |
| else if (showFullHelp && ShowWindow) |
| { |
| graphicalHostReflectionWrapper.CallStaticMethod("ShowHelpWindow", helpInfo.FullHelp, this); |
| } |
| #endif |
| else |
| { |
| |
| if (showFullHelp) |
| { |
| if (Parameter != null) |
| { |
| GetAndWriteParameterInfo(helpInfo); |
| } |
| else |
| { |
| PSObject objectToReturn = TransformView(helpInfo.FullHelp); |
| objectToReturn.IsHelpObject = true; |
| WriteObject(objectToReturn); |
| } |
| } |
| else |
| { |
| if (Parameter != null) |
| { |
| PSObject[] pInfos = GetParameterInfo(helpInfo); |
|
|
| if ((pInfos == null) || (pInfos.Length == 0)) |
| { |
| return; |
| } |
| } |
|
|
| WriteObject(helpInfo.ShortHelp); |
| } |
| } |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| private void LaunchOnlineHelp(Uri uriToLaunch) |
| { |
| Diagnostics.Assert(uriToLaunch != null, "uriToLaunch should not be null"); |
|
|
| if (!uriToLaunch.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase) && |
| !uriToLaunch.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) |
| { |
| throw PSTraceSource.NewInvalidOperationException(HelpErrors.ProtocolNotSupported, |
| uriToLaunch.ToString(), |
| "http", |
| "https"); |
| } |
|
|
| |
| if (InternalTestHooks.BypassOnlineHelpRetrieval) |
| { |
| this.WriteObject(string.Format(CultureInfo.InvariantCulture, HelpDisplayStrings.OnlineHelpUri, uriToLaunch.OriginalString)); |
| return; |
| } |
|
|
| Exception exception = null; |
| bool wrapCaughtException = true; |
| try |
| { |
| this.WriteVerbose(string.Format(CultureInfo.InvariantCulture, HelpDisplayStrings.OnlineHelpUri, uriToLaunch.OriginalString)); |
| System.Diagnostics.Process browserProcess = new System.Diagnostics.Process(); |
|
|
| if (Platform.IsNanoServer || Platform.IsIoT) |
| { |
| |
| wrapCaughtException = false; |
| exception = PSTraceSource.NewInvalidOperationException(HelpErrors.CannotLaunchURI, uriToLaunch.OriginalString); |
| } |
| else |
| { |
| browserProcess.StartInfo.FileName = uriToLaunch.OriginalString; |
| browserProcess.StartInfo.UseShellExecute = true; |
| browserProcess.Start(); |
| } |
| } |
| catch (InvalidOperationException ioe) |
| { |
| exception = ioe; |
| } |
| catch (System.ComponentModel.Win32Exception we) |
| { |
| exception = we; |
| } |
|
|
| if (exception != null) |
| { |
| if (wrapCaughtException) |
| throw PSTraceSource.NewInvalidOperationException(exception, HelpErrors.CannotLaunchURI, uriToLaunch.OriginalString); |
| else |
| throw exception; |
| } |
| } |
|
|
| #endregion |
|
|
| private void HelpSystem_OnProgress(object sender, HelpProgressEventArgs arg) |
| { |
| var record = new ProgressRecord(0, this.CommandInfo.Name, arg.Activity) |
| { |
| PercentComplete = arg.PercentComplete |
| }; |
|
|
| WriteProgress(record); |
| } |
|
|
| private void HelpSystem_OnComplete() |
| { |
| var record = new ProgressRecord(0, this.CommandInfo.Name, "Completed") |
| { |
| RecordType = ProgressRecordType.Completed |
| }; |
|
|
| WriteProgress(record); |
| } |
|
|
| #region Helper methods for verification of parameters against NoLanguage mode |
|
|
| internal static void VerifyParameterForbiddenInRemoteRunspace(Cmdlet cmdlet, string parameterName) |
| { |
| if (NativeCommandProcessor.IsServerSide) |
| { |
| string message = StringUtil.Format(CommandBaseStrings.ParameterNotValidInRemoteRunspace, |
| cmdlet.MyInvocation.InvocationName, |
| parameterName); |
| Exception e = new InvalidOperationException(message); |
| ErrorRecord errorRecord = new ErrorRecord(e, "ParameterNotValidInRemoteRunspace", ErrorCategory.InvalidArgument, null); |
| cmdlet.ThrowTerminatingError(errorRecord); |
| } |
| } |
|
|
| #endregion |
|
|
| #region trace |
| [TraceSource("GetHelpCommand", "GetHelpCommand")] |
| private static readonly PSTraceSource s_tracer = PSTraceSource.GetTracer("GetHelpCommand", "GetHelpCommand"); |
| #endregion |
| } |
|
|
| |
| |
| |
| public static class GetHelpCodeMethods |
| { |
| |
| |
| |
| |
| private static bool DoesCurrentRunspaceIncludeCoreHelpCmdlet() |
| { |
| InitialSessionState iss = Runspace.DefaultRunspace.InitialSessionState; |
| if (iss is null) |
| { |
| return false; |
| } |
|
|
| Collection<SessionStateCommandEntry> getHelpEntries = iss.Commands["Get-Help"]; |
| SessionStateCommandEntry getHelpEntry = null; |
| for (int i = 0; i < getHelpEntries.Count; ++i) |
| { |
| if (getHelpEntries[i].Visibility is not SessionStateEntryVisibility.Public) |
| { |
| continue; |
| } |
|
|
| |
| |
| if (getHelpEntry is not null) |
| { |
| return false; |
| } |
|
|
| getHelpEntry = getHelpEntries[i]; |
| } |
|
|
| return getHelpEntry is SessionStateCmdletEntry getHelpCmdlet |
| && getHelpCmdlet.ImplementingType == typeof(GetHelpCommand); |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| [SuppressMessage("Microsoft.Design", "CA1055:UriReturnValuesShouldNotBeStrings")] |
| public static string GetHelpUri(PSObject commandInfoPSObject) |
| { |
| if (commandInfoPSObject == null) |
| { |
| return string.Empty; |
| } |
|
|
| CommandInfo cmdInfo = PSObject.Base(commandInfoPSObject) as CommandInfo; |
| |
| |
| if ((cmdInfo == null) || (string.IsNullOrEmpty(cmdInfo.Name))) |
| { |
| return string.Empty; |
| } |
|
|
| |
| |
| |
| if ((cmdInfo is CmdletInfo) || (cmdInfo is FunctionInfo) || |
| (cmdInfo is ExternalScriptInfo) || (cmdInfo is ScriptInfo)) |
| { |
| if (!string.IsNullOrEmpty(cmdInfo.CommandMetadata.HelpUri)) |
| { |
| return cmdInfo.CommandMetadata.HelpUri; |
| } |
| } |
|
|
| AliasInfo aliasInfo = cmdInfo as AliasInfo; |
| if ((aliasInfo != null) && |
| (aliasInfo.ExternalCommandMetadata != null) && |
| (!string.IsNullOrEmpty(aliasInfo.ExternalCommandMetadata.HelpUri))) |
| { |
| return aliasInfo.ExternalCommandMetadata.HelpUri; |
| } |
|
|
| |
| string cmdName = cmdInfo.Name; |
| if (!string.IsNullOrEmpty(cmdInfo.ModuleName)) |
| { |
| cmdName = string.Create(CultureInfo.InvariantCulture, $"{cmdInfo.ModuleName}\\{cmdInfo.Name}"); |
| } |
|
|
| if (DoesCurrentRunspaceIncludeCoreHelpCmdlet()) |
| { |
| |
| |
| var currentContext = System.Management.Automation.Runspaces.LocalPipeline.GetExecutionContextFromTLS(); |
| if ((currentContext != null) && (currentContext.HelpSystem != null)) |
| { |
| HelpRequest helpRequest = new HelpRequest(cmdName, cmdInfo.HelpCategory); |
| helpRequest.ProviderContext = new ProviderContext( |
| string.Empty, |
| currentContext, |
| currentContext.SessionState.Path); |
| helpRequest.CommandOrigin = CommandOrigin.Runspace; |
| foreach ( |
| Uri result in |
| currentContext.HelpSystem.ExactMatchHelp(helpRequest).Select( |
| helpInfo => helpInfo.GetUriForOnlineHelp()).Where(static result => result != null)) |
| { |
| return result.OriginalString; |
| } |
| } |
| } |
| else |
| { |
| |
| |
| |
| |
| |
| |
| var getHelpPS = System.Management.Automation.PowerShell.Create(RunspaceMode.CurrentRunspace) |
| .AddCommand("get-help") |
| .AddParameter("Name", cmdName) |
| .AddParameter("Category", cmdInfo.HelpCategory.ToString()); |
| try |
| { |
| Collection<PSObject> helpInfos = getHelpPS.Invoke(); |
|
|
| if (helpInfos != null) |
| { |
| for (int index = 0; index < helpInfos.Count; index++) |
| { |
| HelpInfo helpInfo; |
| if (LanguagePrimitives.TryConvertTo<HelpInfo>(helpInfos[index], out helpInfo)) |
| { |
| Uri result = helpInfo.GetUriForOnlineHelp(); |
| if (result != null) |
| { |
| return result.OriginalString; |
| } |
| } |
| else |
| { |
| Uri result = BaseCommandHelpInfo.GetUriFromCommandPSObject(helpInfos[index]); |
| return (result != null) ? result.OriginalString : string.Empty; |
| } |
| } |
| } |
| } |
| finally |
| { |
| getHelpPS.Dispose(); |
| } |
| } |
|
|
| return string.Empty; |
| } |
| } |
| } |
|
|