This type contains the following members.
public sealed enum UrlType
- Inheritance:
- ObjectEnumUrlType
Values
| Relative | The url relative to the host root, i.e. without scheme and hostname parts, for example |
| RelativeIfSameHost | The url relative to the host root if the specified resource is on the same host as the current request, otherwise the absolute url. |
| RelativeToRequestPath | The url relative to the current request path if the specified resource is on a sub path from the current request, otherwise the full relative url (to the host root). |
| Canonical | The canonical absolute url, based on the primary host (for the specified culture) of the site. This may be a different hostname than the current request hostname. |
| Absolute | The absolute url with the same host as the current request host if possible, otherwise the canonical (primary host) url, for example |