This is a convenience method for use by subclasses to retrieve a specific EndecaCommand from a collection of CommandInfos based on the type and ID of the command. It throws a CommandNotFoundException if a command of the specified type and ID cannot be found.

Namespace:  Endeca.Web.Url.Seo.Utility
Assembly:  Endeca.Web.Url.Seo (in Endeca.Web.Url.Seo.dll) Version: 2.1.1.0 (2.1.1.0)

Syntax

C#
public static T FindCommand<T>(
	CommandInfoCollection commands,
	string id
)
where T : EndecaCommand
Visual Basic (Declaration)
Public Shared Function FindCommand(Of T As EndecaCommand) ( _
	commands As CommandInfoCollection, _
	id As String _
) As T
Visual C++
public:
generic<typename T>
where T : EndecaCommand
static T FindCommand(
	CommandInfoCollection^ commands, 
	String^ id
)

Parameters

commands
Type: CommandInfoCollection
The collection of commands to search.
id
Type: System..::.String
The ID of the command to retrieve.

Type Parameters

T
The type of the command to retrieve.

Return Value

The retrieved command.

See Also