Ejemplo n.º 1
0
        internal void OverrideProviderSpecificHelpWithGenericHelp(HelpInfo genericHelpInfo)
        {
            PSObject fullHelp = genericHelpInfo.FullHelp;

            MamlUtil.OverrideName(this._fullHelpObject, fullHelp);
            MamlUtil.PrependSyntax(this._fullHelpObject, fullHelp);
            MamlUtil.PrependDetailedDescription(this._fullHelpObject, fullHelp);
            MamlUtil.OverrideParameters(this._fullHelpObject, fullHelp);
            MamlUtil.PrependNotes(this._fullHelpObject, fullHelp);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Override the FullHelp PSObject of this provider-specific HelpInfo with generic help.
        /// </summary>
        internal void OverrideProviderSpecificHelpWithGenericHelp(HelpInfo genericHelpInfo)
        {
            PSObject genericHelpMaml = genericHelpInfo.FullHelp;

            MamlUtil.OverrideName(_fullHelpObject, genericHelpMaml);
            MamlUtil.OverridePSTypeNames(_fullHelpObject, genericHelpMaml);
            MamlUtil.PrependSyntax(_fullHelpObject, genericHelpMaml);
            MamlUtil.PrependDetailedDescription(_fullHelpObject, genericHelpMaml);
            MamlUtil.OverrideParameters(_fullHelpObject, genericHelpMaml);
            MamlUtil.PrependNotes(_fullHelpObject, genericHelpMaml);
            MamlUtil.AddCommonProperties(_fullHelpObject, genericHelpMaml);
        }