Gets the UrlManager with the specified ID, creating it if necessary.
Namespace:
Endeca.Web.UrlAssembly: Endeca.Web (in Endeca.Web.dll) Version: 2.1.1.0 (2.1.1.620)
Syntax
C# |
---|
public static UrlManager Get( string managerID ) |
Visual Basic (Declaration) |
---|
Public Shared Function Get ( _ managerID As String _ ) As UrlManager |
Visual C++ |
---|
public: static UrlManager^ Get( String^ managerID ) |
Parameters
- managerID
- Type: System..::.String
ID of the UrlManager to retrieve.
Remarks
This method offers a convenient way to create and share a UrlManager
instance among the controls on an ASP.NET page. The first time during a page request
that this method is called, and new UrlManager instance is created and
stored in the Items collection of the current
HttpContext. Subsequent calls with the same managerID
will return this instance.
Because the same instance is returned, controls anywhere in the control hierarchy can access the manager by name, relieving page developers from the task of sharing a global UrlManager instance.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | if managerID is null or empty. |