Share via


ApiController.Url Property

Definition

Gets a factory used to generate URLs to other APIs.

public Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; set; }
member this.Url : Microsoft.AspNetCore.Mvc.IUrlHelper with get, set
Public Property Url As IUrlHelper

Property Value

A System.Web.Http.Routing.UrlHelper, which is used to generate URLs to other APIs.

Remarks

The setter is intended for unit testing purposes only.

Applies to