Click or drag to resize

ShellCommandGetShellCommand Method (Assembly, String)

Gets the shell command with the specified command name, using a case-insensitive string comparison for the command names.

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public static Type GetShellCommand(
	Assembly assembly,
	string commandName
)

Parameters

assembly
Type: System.ReflectionAssembly
The assembly whose types to search.
commandName
Type: SystemString
The command name of the shell command.

Return Value

Type: Type
The Type of the specified shell command, or if none could be found.
Exceptions
ExceptionCondition
ArgumentNullExceptionassembly or commandName is .
Remarks

This method uses OrdinalIgnoreCase to compare command names.

See Also