CommandInfoMatchesName Method

Checks whether the command's name or aliases match the specified name.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public bool MatchesName(
	string name
)

Parameters

name  String
The name to check for.

Return Value

Boolean
if the name matches the Name property or any of the items in the Aliases property.

Remarks

Automatic prefix aliases are not considered by this method, regardless of the value of the AutoCommandPrefixAliases property. To check for a prefix, use the MatchesPrefix(String) method.

Exceptions

See Also