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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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