Intersoft ClientUI Documentation
MapUri Method
See Also  Send Feedback
Intersoft.Client.UI.Navigation Namespace > UriMapper Class : MapUri Method






uri
Original URI value to be converted to a new URI.
Converts a specified uniform resource identifier (URI) into a new URI based on the rules of a matching object in the UriMappings collection.

Syntax

Visual Basic (Declaration) 
Public Overrides NotOverridable Function MapUri( _
   ByVal uri As Uri _
) As Uri
Visual Basic (Usage)Copy Code
Dim instance As UriMapper
Dim uri As Uri
Dim value As Uri
 
value = instance.MapUri(uri)
C# 
public override Uri MapUri( 
   Uri uri
)
Delphi 
public function MapUri( 
    uri: Uri
): Uri; override; 
JScript 
public override function MapUri( 
   uri : Uri
) : Uri;
Managed Extensions for C++ 
public: Uri* MapUri( 
   Uri* uri
) override 
C++/CLI 
public:
Uri^ MapUri( 
   Uri^ uri
) override 

Parameters

uri
Original URI value to be converted to a new URI.

Return Value

A URI to use for handling the request instead of the value of the uri parameter. If no object in the UriMappings collection matches uri, the original value for uri is returned.

Remarks

The MapUri method returns the mapped URI value from the first object in the UriMappings collection that matches the uri value. If more than one object in the collection matches the uri value, only the mapped URI from the first instance in the collection is returned.

An object in the UriMappings collection matches the uri value if the MapUri for that instance of the UriMapping class returns a value.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.