Freigeben über


UrlHelper.Request Property

Gets or sets the HttpRequestMessage of the current UrlHelper instance.

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

Syntax

'Declaration
Public Property Request As HttpRequestMessage 
    Get 
    Set
'Usage
Dim instance As UrlHelper 
Dim value As HttpRequestMessage 

value = instance.Request

instance.Request = value
public HttpRequestMessage Request { get; set; }
public:
property HttpRequestMessage^ Request {
    HttpRequestMessage^ get ();
    void set (HttpRequestMessage^ value);
}
member Request : HttpRequestMessage with get, set
function get Request () : HttpRequestMessage 
function set Request (value : HttpRequestMessage)

Property Value

Type: HttpRequestMessage
The HttpRequestMessage of the current instance.

Remarks

The property setter is intended only for unit testing. Otherwise, you should treat this property as read-only.

See Also

Reference

UrlHelper Class

System.Web.Http.Routing Namespace