Gets a copy of the command with the specified ID that was previously registered with a UrlManager.

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

Syntax

C#
public TCommand Get<TCommand>(
	string commandID
)
where TCommand : new(), EndecaCommand
Visual Basic (Declaration)
Public Function Get(Of TCommand As {New, EndecaCommand}) ( _
	commandID As String _
) As TCommand
Visual C++
public:
generic<typename TCommand>
where TCommand : gcnew(), EndecaCommand
TCommand Get(
	String^ commandID
)

Parameters

commandID
Type: System..::.String
ID of the command to retrieve.

Type Parameters

TCommand
Type of the command to retrieve.

Remarks

Note that the command is only copied once; multiple calls to this method with the same command ID always return the same instance.

Exceptions

ExceptionCondition
System..::.ArgumentException if commandID is null or empty.
System..::.ArgumentOutOfRangeException if a command with the specified ID was not registerd with a UrlManager.

See Also