Skip to content
ConsoleMonster

API Reference

Class

HelpTopic

Namespace ConsoleMonster.Help
Assembly ConsoleMonster
Modifiers sealed

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 72 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.

Accepted by parameters 37

Constructors

public HelpTopic(String name) #

Creates a topic.

Parameters

name System.String requiredposition: 0
The command name.

Properties

public String Name { get; } #

The command name.

public String? Synopsis { get; set; } #

The one-line summary, or null.

public String? Notice { get; set; } #

A note shown muted under the name (for example that only partial help is installed), or null.

public IList<String> Description { get; } #

The description paragraphs.

public IList<HelpSyntax> Syntax { get; } #

One syntax per parameter set.

public IList<HelpParameter> Parameters { get; } #

The parameters, in help order.

public Boolean CommonParameters { get; set; } #

Whether the command takes the common parameters (-Verbose, -ErrorAction and the others).

public IList<HelpExample> Examples { get; } #

The examples.

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).

public IList<String> Notes { get; } #

The notes paragraphs.

Extension Methods

AddDescription 3 overloads
public static HelpTopic AddDescription(HelpTopic helpTopic, String item) #
Returns: HelpTopic

Adds an item to HelpTopic.Description: The description paragraphs.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
item System.String requiredposition: 1
The item.

Returns

The same instance.

public static HelpTopic AddDescription(HelpTopic helpTopic, params String[] items) #
Returns: HelpTopic

Adds items to HelpTopic.Description: The description paragraphs.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.String[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddDescription(HelpTopic helpTopic, IEnumerable<String> items) #
Returns: HelpTopic

Adds items to HelpTopic.Description: The description paragraphs.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<System.String> requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddExample(HelpTopic helpTopic, HelpExample item) #
Returns: HelpTopic

Adds an item to HelpTopic.Examples: The examples.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
item ConsoleMonster.Help.HelpExample requiredposition: 1
The item.

Returns

The same instance.

AddExamples 2 overloads
public static HelpTopic AddExamples(HelpTopic helpTopic, params HelpExample[] items) #
Returns: HelpTopic

Adds items to HelpTopic.Examples: The examples.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items ConsoleMonster.Help.HelpExample[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddExamples(HelpTopic helpTopic, IEnumerable<HelpExample> items) #
Returns: HelpTopic

Adds items to HelpTopic.Examples: The examples.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpExample> requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddInput(HelpTopic helpTopic, String item) #
Returns: HelpTopic

Adds an item to HelpTopic.Inputs: The input types (with an optional description after a tab).

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
item System.String requiredposition: 1
The item.

Returns

The same instance.

AddInputs 2 overloads
public static HelpTopic AddInputs(HelpTopic helpTopic, params String[] items) #
Returns: HelpTopic

Adds items to HelpTopic.Inputs: The input types (with an optional description after a tab).

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.String[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddInputs(HelpTopic helpTopic, IEnumerable<String> items) #
Returns: HelpTopic

Adds items to HelpTopic.Inputs: The input types (with an optional description after a tab).

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<System.String> requiredposition: 1
The items, in order.

Returns

The same instance.

AddLinks 2 overloads
public static HelpTopic AddNote(HelpTopic helpTopic, String item) #
Returns: HelpTopic

Adds an item to HelpTopic.Notes: The notes paragraphs.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
item System.String requiredposition: 1
The item.

Returns

The same instance.

AddNotes 2 overloads
public static HelpTopic AddNotes(HelpTopic helpTopic, params String[] items) #
Returns: HelpTopic

Adds items to HelpTopic.Notes: The notes paragraphs.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.String[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddNotes(HelpTopic helpTopic, IEnumerable<String> items) #
Returns: HelpTopic

Adds items to HelpTopic.Notes: The notes paragraphs.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<System.String> requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddOutput(HelpTopic helpTopic, String item) #
Returns: HelpTopic

Adds an item to HelpTopic.Outputs: The output types (with an optional description after a tab).

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
item System.String requiredposition: 1
The item.

Returns

The same instance.

AddOutputs 2 overloads
public static HelpTopic AddOutputs(HelpTopic helpTopic, params String[] items) #
Returns: HelpTopic

Adds items to HelpTopic.Outputs: The output types (with an optional description after a tab).

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.String[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddOutputs(HelpTopic helpTopic, IEnumerable<String> items) #
Returns: HelpTopic

Adds items to HelpTopic.Outputs: The output types (with an optional description after a tab).

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<System.String> requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddParameter(HelpTopic helpTopic, HelpParameter item) #
Returns: HelpTopic

Adds an item to HelpTopic.Parameters: The parameters, in help order.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
item ConsoleMonster.Help.HelpParameter requiredposition: 1
The item.

Returns

The same instance.

AddParameters 2 overloads
public static HelpTopic AddParameters(HelpTopic helpTopic, params HelpParameter[] items) #
Returns: HelpTopic

Adds items to HelpTopic.Parameters: The parameters, in help order.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items ConsoleMonster.Help.HelpParameter[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddParameters(HelpTopic helpTopic, IEnumerable<HelpParameter> items) #
Returns: HelpTopic

Adds items to HelpTopic.Parameters: The parameters, in help order.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpParameter> requiredposition: 1
The items, in order.

Returns

The same instance.

AddSyntax 3 overloads
public static HelpTopic AddSyntax(HelpTopic helpTopic, HelpSyntax item) #
Returns: HelpTopic

Adds an item to HelpTopic.Syntax: One syntax per parameter set.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
item ConsoleMonster.Help.HelpSyntax requiredposition: 1
The item.

Returns

The same instance.

public static HelpTopic AddSyntax(HelpTopic helpTopic, params HelpSyntax[] items) #
Returns: HelpTopic

Adds items to HelpTopic.Syntax: One syntax per parameter set.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items ConsoleMonster.Help.HelpSyntax[] requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic AddSyntax(HelpTopic helpTopic, IEnumerable<HelpSyntax> items) #
Returns: HelpTopic

Adds items to HelpTopic.Syntax: One syntax per parameter set.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Help.HelpSyntax> requiredposition: 1
The items, in order.

Returns

The same instance.

public static HelpTopic WithCommonParameters(HelpTopic helpTopic, Boolean value = true) #
Returns: HelpTopic

Sets HelpTopic.CommonParameters: Whether the command takes the common parameters (-Verbose, -ErrorAction and the others).

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
value System.Boolean = true optionalposition: 1
The value (default true).

Returns

The same instance.

public static HelpTopic WithNotice(HelpTopic helpTopic, String? value) #
Returns: HelpTopic

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 requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.

public static HelpTopic WithSynopsis(HelpTopic helpTopic, String? value) #
Returns: HelpTopic

Sets HelpTopic.Synopsis: The one-line summary, or null.

Parameters

helpTopic ConsoleMonster.Help.HelpTopic requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.