UriKind Enum
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
Name | Value | Description |
---|---|---|
RelativeOrAbsolute | 0 | The URI kind is indeterminate. |
Absolute | 1 | The URI is absolute. |
Relative | 2 | The URI is relative. |
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)
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: