Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
UriKind Enum
Definition
- Namespace:
- System
- Assemblies:
- System.dll, System.Runtime.dll
- Assemblies:
- netstandard.dll, System.Runtime.dll
- Assembly:
- System.Runtime.dll
- Assembly:
- System.dll
- Assembly:
- netstandard.dll
- Source:
- UriEnumTypes.cs
- Source:
- UriEnumTypes.cs
- Source:
- UriHelper.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the different kinds of URIs.
public enum class UriKind
public enum UriKind
type UriKind =
Public Enum UriKind
- Inheritance
Fields
| Name | Value | Description |
|---|---|---|
| RelativeOrAbsolute | 0 | The URI kind is indeterminate. |
| Absolute | 1 | The URI is absolute. |
| Relative | 2 | The URI is relative. |
Remarks
Absolute URIs are characterized by a complete reference to the resource (example: http://www.contoso.com/index.html), while a relative URI depends on a previously defined base URI (example: /index.html).
The following list shows some APIs that use the UriKind enum:
- Uri.Uri(String, UriKind)
- Uri.IsWellFormedUriString(String, UriKind)
- Uri.TryCreate(String, UriKind, Uri)
Applies to
Feedback
Was this page helpful?
