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 | |
---|---|---|
UrlHelper() | Initializes a new instance of the UrlHelper class. |
|
UrlHelper(HttpRequestMessage) | Initializes a new instance of the UrlHelper class. |
Properties
Name | Description | |
---|---|---|
Request | Gets or sets the HttpRequestMessage of the current UrlHelper instance. |
Methods
Name | Description | |
---|---|---|
Content(String) | Creates an absolute URL using the specified path. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Link(String, IDictionary<String, Object>) | Returns a link for the specified route. |
|
Link(String, Object) | Returns a link for the specified route. |
|
MemberwiseClone() | (Inherited from Object.) |
|
Route(String, IDictionary<String, Object>) | Returns the route for the UrlHelper. |
|
Route(String, Object) | Returns the route for the UrlHelper. |
|
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