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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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