Partager via


ApiController.Url Property

Returns an instance of a UrlHelper, which is used to generate URLs to other APIs.

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

Syntax

'Declaration
Public Property Url As UrlHelper
    Get
    Set
'Usage
Dim instance As ApiController
Dim value As UrlHelper

value = instance.Url

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

Property Value

Type: System.Web.Http.Routing.UrlHelper
A UrlHelper object which is used to generate URLs to other APIs.

See Also

Reference

ApiController Class

System.Web.Http Namespace