UriKind Enum
Definition
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
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.