UrlHelper Class

 

Represents a factory for creating URLs.

Namespace:   System.Web.Http.Routing
Assembly:  System.Web.Http (in System.Web.Http.dll)

Inheritance Hierarchy

System.Object
  System.Web.Http.Routing.UrlHelper

Syntax

public class UrlHelper
public ref class UrlHelper 
type UrlHelper = class end
Public Class UrlHelper

Constructors

Name Description
System_CAPS_pubmethod UrlHelper()

Initializes a new instance of the UrlHelper class.

System_CAPS_pubmethod UrlHelper(HttpRequestMessage)

Initializes a new instance of the UrlHelper class.

Properties

Name Description
System_CAPS_pubproperty Request

Gets or sets the HttpRequestMessage of the current UrlHelper instance.

Methods

Name Description
System_CAPS_pubmethod Content(String)

Creates an absolute URL using the specified path.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Link(String, IDictionary<String, Object>)

Returns a link for the specified route.

System_CAPS_pubmethod Link(String, Object)

Returns a link for the specified route.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Route(String, IDictionary<String, Object>)

Returns the route for the UrlHelper.

System_CAPS_pubmethod Route(String, Object)

Returns the route for the UrlHelper.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.Routing Namespace

Return to top