InvocationContext Class

Definition

Supports command invocation by providing access to parse results and other services.

public ref class InvocationContext sealed
public sealed class InvocationContext
type InvocationContext = class
Public NotInheritable Class InvocationContext
Inheritance
InvocationContext

Constructors

InvocationContext(ParseResult, IConsole)

Properties

BindingContext

The binding context for the current invocation.

Console

The console to which output should be written during the current invocation.

ExitCode

A value that can be used to set the exit code for the process.

HelpBuilder

Enables writing help output.

InvocationResult

The result of the current invocation.

LocalizationResources

Provides localizable strings for help and error messages.

Parser

The parser used to create the ParseResult.

ParseResult

The parse result for the current invocation.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetCancellationToken()

Gets token to implement cancellation handling.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to