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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.