This is a convenience method for use by subclasses to retrieve a specific
CommandInfo from a collection of
CommandInfos
based on the type and ID of the underlying command. It throws a
CommandNotFoundException if a
CommandInfo with
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.3.0 (2.1.3.622)
Syntax
C# |
---|
public static CommandInfo FindCommandInfo<T>(
CommandInfoCollection commands,
string id
)
where T : EndecaCommand
|
Visual Basic (Declaration) |
---|
Public Shared Function FindCommandInfo(Of T As EndecaCommand) ( _
commands As CommandInfoCollection, _
id As String _
) As CommandInfo |
Visual C++ |
---|
public:
generic<typename T>
where T : EndecaCommand
static CommandInfo^ FindCommandInfo(
CommandInfoCollection^ commands,
String^ id
) |
Parameters
- commands
- Type: CommandInfoCollection
The collection of commands to search.
- id
- Type: System..::.String
The ID of the command for which to search.
Type Parameters
- T
- The type of the command for which to search.
Return Value
The
CommandInfo of the command found.
See Also