src/System.Management.Automation/help/FaqHelpInfo.cs
/// <summary>
/// Returns true if help content in help info matches the
/// pattern contained in <paramref name="pattern"/>. 
/// The underlying code will usually run pattern.IsMatch() on
/// content it wants to search.
/// FAQ help info looks for pattern in Synopsis and 
/// Answers
/// </summary>
/// <param name="pattern"></param>
/// <returns></returns>
Returns true if help content in help info matches the
pattern contained in .
The underlying code will usually run pattern.IsMatch() on
content it wants to search.
FAQ help info looks for pattern in Synopsis and
Answers
Returns true if help content in help info matches the pattern contained in . The underlying code will usually run pattern . IsMatch () on content it wants to search . FAQ help info looks for pattern in Synopsis and Answers
internal override bool MatchPatternInContent(WildcardPattern pattern)
        {
            Diagnostics.Assert(null != pattern, "pattern cannot be null");
            string synopsis = Synopsis;
            string answers = Answers;
            if (null == synopsis)
            {
                synopsis = string.Empty;
            }
            if (null == Answers)
            {
                answers = string.Empty;
            }
            return pattern.IsMatch(synopsis) || pattern.IsMatch(answers);
        }
internal override bool MatchPatternInContent ( WildcardPattern pattern ) { Diagnostics . Assert ( null != pattern , " " ) ; string synopsis = Synopsis ; string answers = Answers ; if ( null == synopsis ) { synopsis = string . Empty ; } if ( null == Answers ) { answers = string . Empty ; } return pattern . IsMatch ( synopsis ) || pattern . IsMatch ( answers ) ; }
Returns true if help content in help info matches the
pattern contained in .
Returns true if help content in help info matches the pattern contained in .
None
pattern
WildcardPattern
None