How to use Virtualpath utility service

Topics: Web Client Software Factory, User Forum
Apr 18, 2007 at 8:59 PM
Could anyone help me with how to use Virtual path utility service. any code samples will help us a lot
Apr 23, 2007 at 3:19 PM
Hi Subramaniyanan,

The VirtualPathUtilityService is a service that wraps the VirtualPathUtility class provided by the System.Web assembly. The VirtualPathUtility class provides utility methods for common operations involving virtual paths.

To use the VirtualPathUtilityService you have to retrieve the service in the same way that you retrieve any registered service. Here is an example:

private IVirtualPathUtilityService _virtualPathService;
public IVirtualPathUtilityService VirtualPathService
    get { return _virtualPathService; }
    set { _virtualPathService = value; }
Check out the topic “How to: Register and Use Services” in the WCSF Help file to get more information.

Let me know if this helps,
Ezequiel Jadib