Export (0) Print
Expand All

IUrlResolutionService Interface

Defines a service implemented by objects to resolve relative URLs based on contextual information.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public interface IUrlResolutionService

The IUrlResolutionService type exposes the following members.

  NameDescription
Public methodResolveClientUrlReturns a resolved URL that is suitable for use by the client.
Top

This interface defines the service that is used to resolve URL paths. The IUrlResolutionService interface is used for resolving relative paths and paths that contain the ~ operator. Server controls that reference resources can define the paths to the resources through the ~ operator, which represents the root of the current application. A path containing the ~ operator will not work if passed to the browser. The server control must convert the path to an absolute or relative path before passing it to the browser.

Control implements this interface. A control that derives from Control could override this implementation to provide customized resolution of URLs.

.NET Framework

Supported in: 4.6, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft