System.UriKind Enumeration

Defines the kinds of Uris for the Uri.IsWellFormedUriString(string, UriKind) and several erload:System.Uri.#ctor methods.

Syntax

public enum UriKind

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).

Members

Member NameDescription
Absolute

The Uri is an absolute Uri.

Relative

The Uri is a relative Uri.

RelativeOrAbsolute

The kind of the Uri is indeterminate.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0