CommandInfoMatchesPrefix Method

Checks whether the command's name or one of its aliases start with the specified prefix.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public bool MatchesPrefix(
	string prefix
)

Parameters

prefix  String
The prefix to check for.

Return Value

Boolean
if prefix is a prefix of the Name property or any of the items in the Aliases property.

Exceptions

See Also