PRIM_WEB.Routing (PRIM_WEB.Routing)

This component class defines the features of a helper component that is accessed using the Routing property of the PRIM_WEB.Application component class. Use the Routing class instance to access the state of the current routing request.

Ancestors - Object (PRIM_OBJT)

Details

The Routing class defines the features of a helper component accessed using a new Routing property of the PRIM_WEB.Application component class.
 
Use the Routing class instance to access the state of the current routing request.

Properties

NameDescription
ActivePathA read-only property that supplies a string containing that piece of the current URL path component that has been processed by the routing framework
ActiveRoutesThis read-only property provides access to the collection of PRIM_WEB.Route instances resolved by the routing engine for the current ActivePath
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
FullPathA read-only property that supplies a string containing that the current URL path component. It is a concatenation of the RootPath and the ActivePath properties
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
PathParametersRead-only property providing access to an instance of the class PRIM_WEB.RoutingPathParameters which is a read-write collection of PRIM_WEB.RoutingPathParameter components. Each instance of class PRIM_WEB.RoutingPathParameter contains a Name/Value pair with the name corresponding to the name assigned to the path variable and the value corresponding to the actual value for the variable in the current URL path component. For example, the path '/Categories/Fluffy/Products/P123' for the path 'Categories/{CategoryId}/Products/{ProductId}' would supply the value 'Fluffy' for the parameter named CategoryId and 'P123' for the parameter named ProductId
RootPathRead-only property that supplies a string containing that piece of the current URL path component that identifies the current web page
RoutingProviderA component reference that has implemented PRIM_WEB.IRouterProvider to enable an application with a dynamaic router

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from PRIM_WEB.Routing (PRIM_WEB.Routing)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from PRIM_WEB.Routing (PRIM_WEB.Routing)

Methods

NameDescription
NavigateMethod used to request that the application navigate to the path supplied as the path parameter
Result, Path, Signal, Query
ReplaceMethod used to request that the application navigate to the path supplied as the path parameter and replace the current item in the browser history
Result, Path, Signal, Query

See also

All Component Classes

Technical Reference