HelpTopic
ConsoleMonster.Help
A command's help, as structured data: what HelpView shows. Show-ConsoleHelp fills it from PowerShell's Get-Help objects; .NET hosts can fill it from their own command descriptions.
Inheritance
- object
- HelpTopic
Usage
Explore 88 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 43
- Extension method HelpTopic.CommandLine
- Extension method HelpTopic.CommonParameters
- Extension method HelpTopic.Description
- Extension method HelpTopic.Example
- Extension method HelpTopic.Examples
- Extension method HelpTopic.Input
- Extension method HelpTopic.Inputs
- Extension method HelpTopic.Link
- Extension method HelpTopic.Links
- Extension method HelpTopic.Module
- Extension method HelpTopic.Note
- Extension method HelpTopic.Notes
- Extension method HelpTopic.Notice
- Extension method HelpTopic.Output
- Extension method HelpTopic.Outputs
- Extension method HelpTopic.Parameter
- Extension method HelpTopic.Parameters
- Extension method HelpTopic.SupportsWhatIf
- Extension method HelpTopic.Synopsis
- Extension method HelpTopic.Syntax
- Extension method HelpTopic.Version
- Method HelpTopicFluent.CommandLine
- Method HelpTopicFluent.CommonParameters
- Method HelpTopicFluent.Description
- Method HelpTopicFluent.Example
- Method HelpTopicFluent.Examples
- Method HelpTopicFluent.Input
- Method HelpTopicFluent.Inputs
- Method HelpTopicFluent.Link
- Method HelpTopicFluent.Links
- Method HelpTopicFluent.Module
- Method HelpTopicFluent.Note
- Method HelpTopicFluent.Notes
- Method HelpTopicFluent.Notice
- Method HelpTopicFluent.Output
- Method HelpTopicFluent.Outputs
- Method HelpTopicFluent.Parameter
- Method HelpTopicFluent.Parameters
- Method HelpTopicFluent.SupportsWhatIf
- Method HelpTopicFluent.Synopsis
- Method HelpTopicFluent.Syntax
- Method HelpTopicFluent.Version
- Property HelpView.Topic
Accepted by parameters 45
- Extension method HelpTopic.CommandLine
- Extension method HelpTopic.CommonParameters
- Extension method HelpTopic.Description
- Extension method HelpTopic.Example
- Extension method HelpTopic.Examples
- Extension method HelpTopic.Input
- Extension method HelpTopic.Inputs
- Extension method HelpTopic.Link
- Extension method HelpTopic.Links
- Extension method HelpTopic.Module
- Extension method HelpTopic.Note
- Extension method HelpTopic.Notes
- Extension method HelpTopic.Notice
- Extension method HelpTopic.Output
- Extension method HelpTopic.Outputs
- Extension method HelpTopic.Parameter
- Extension method HelpTopic.Parameters
- Extension method HelpTopic.SupportsWhatIf
- Extension method HelpTopic.Synopsis
- Extension method HelpTopic.Syntax
- Extension method HelpTopic.Version
- Method HelpTopicFluent.CommandLine
- Method HelpTopicFluent.CommonParameters
- Method HelpTopicFluent.Description
- Method HelpTopicFluent.Example
- Method HelpTopicFluent.Examples
- Method HelpTopicFluent.Input
- Method HelpTopicFluent.Inputs
- Method HelpTopicFluent.Link
- Method HelpTopicFluent.Links
- Method HelpTopicFluent.Module
- Method HelpTopicFluent.Note
- Method HelpTopicFluent.Notes
- Method HelpTopicFluent.Notice
- Method HelpTopicFluent.Output
- Method HelpTopicFluent.Outputs
- Method HelpTopicFluent.Parameter
- Method HelpTopicFluent.Parameters
- Method HelpTopicFluent.SupportsWhatIf
- Method HelpTopicFluent.Synopsis
- Method HelpTopicFluent.Syntax
- Method HelpTopicFluent.Version
- Constructor HelpView.HelpView
- Extension method HelpView.Topic
- Method HelpViewFluent.Topic
Constructors
Inherited Methods
Properties
public CommandLineHelp? CommandLine { get; set; } #Optional compact command-line layout; null retains the PowerShell help layout.
public string? Module { get; set; } #The module the command comes from, or null; the document viewer shows it as a badge.
public string? Version { get; set; } #The command's version, or null; the document viewer shows it as a badge.
public bool SupportsWhatIf { get; set; } #Whether the command takes -WhatIf and -Confirm; the document viewer shows it as a badge.
public string? Notice { get; set; } #A note shown muted under the name (for example that only partial help is installed), or null.
public bool CommonParameters { get; set; } #Whether the command takes the common parameters (-Verbose, -ErrorAction and the others).
public IList<string> Inputs { get; } #The input types (with an optional description after a tab).
public IList<string> Outputs { get; } #The output types (with an optional description after a tab).
Extension Methods
public static HelpTopic CommandLine(HelpTopic helpTopic, CommandLineHelp? value) #Sets HelpTopic.CommandLine: Optional compact command-line layout; null retains the PowerShell help layout.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value ConsoleMonster.Help.CommandLineHelp?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.CommandLine = value; helpTopic.CommandLine(value);public static HelpTopic CommandLine(HelpTopic helpTopic, Action<CommandLineHelp> configure) #Configures HelpTopic.CommandLine in place (creating it when not set): Optional compact command-line layout; null retains the PowerShell help layout.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- configure System.Action<ConsoleMonster.Help.CommandLineHelp>
- Configures the value.
public static HelpTopic CommonParameters(HelpTopic helpTopic, bool value = true) #Sets HelpTopic.CommonParameters: Whether the command takes the common parameters (-Verbose, -ErrorAction and the others).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpTopic.CommonParameters = value; helpTopic.CommonParameters(value);public static HelpTopic Description(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Description: The description paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Description(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Description: The description paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Example(HelpTopic helpTopic, HelpExample item) #Adds an item to HelpTopic.Examples: The examples.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpExample
- The item.
public static HelpTopic Examples(HelpTopic helpTopic, IEnumerable<HelpExample> items) #Adds items to HelpTopic.Examples: The examples.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpExample>
- The items, in order.
public static HelpTopic Input(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Inputs: The input types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Inputs(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Inputs: The input types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Link(HelpTopic helpTopic, HelpLink item) #Adds an item to HelpTopic.Links: The related links.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpLink
- The item.
public static HelpTopic Links(HelpTopic helpTopic, IEnumerable<HelpLink> items) #Adds items to HelpTopic.Links: The related links.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpLink>
- The items, in order.
public static HelpTopic Module(HelpTopic helpTopic, string? value) #Sets HelpTopic.Module: The module the command comes from, or null; the document viewer shows it as a badge.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Module = value; helpTopic.Module(value);public static HelpTopic Note(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Notes: The notes paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Notes(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Notes: The notes paragraphs.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Notice(HelpTopic helpTopic, string? value) #Sets HelpTopic.Notice: A note shown muted under the name (for example that only partial help is installed), or null.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Notice = value; helpTopic.Notice(value);public static HelpTopic Output(HelpTopic helpTopic, string item) #Adds an item to HelpTopic.Outputs: The output types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item string
- The item.
public static HelpTopic Outputs(HelpTopic helpTopic, IEnumerable<string> items) #Adds items to HelpTopic.Outputs: The output types (with an optional description after a tab).
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static HelpTopic Parameter(HelpTopic helpTopic, HelpParameter item) #Adds an item to HelpTopic.Parameters: The parameters, in help order.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpParameter
- The item.
public static HelpTopic Parameters(HelpTopic helpTopic, IEnumerable<HelpParameter> items) #Adds items to HelpTopic.Parameters: The parameters, in help order.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpParameter>
- The items, in order.
public static HelpTopic SupportsWhatIf(HelpTopic helpTopic, bool value = true) #Sets HelpTopic.SupportsWhatIf: Whether the command takes -WhatIf and -Confirm; the document viewer shows it as a badge.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
helpTopic.SupportsWhatIf = value; helpTopic.SupportsWhatIf(value);public static HelpTopic Synopsis(HelpTopic helpTopic, string? value) #Sets HelpTopic.Synopsis: The one-line summary, or null.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Synopsis = value; helpTopic.Synopsis(value);public static HelpTopic Syntax(HelpTopic helpTopic, HelpSyntax item) #Adds an item to HelpTopic.Syntax: One syntax per parameter set.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- item ConsoleMonster.Help.HelpSyntax
- The item.
public static HelpTopic Syntax(HelpTopic helpTopic, IEnumerable<HelpSyntax> items) #Adds items to HelpTopic.Syntax: One syntax per parameter set.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpSyntax>
- The items, in order.
public static HelpTopic Version(HelpTopic helpTopic, string? value) #Sets HelpTopic.Version: The command's version, or null; the document viewer shows it as a badge.
Parameters
- helpTopic ConsoleMonster.Help.HelpTopic
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
helpTopic.Version = value; helpTopic.Version(value);