UriComponents 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.
Specifies the parts of a Uri.
This enumeration supports a bitwise combination of its member values.
public enum class UriComponents
[System.Flags]
public enum UriComponents
[<System.Flags>]
type UriComponents =
Public Enum UriComponents
- Inheritance
- Attributes
Name | Value | Description |
---|---|---|
SerializationInfoString | -2147483648 | The complete Uri context that is needed for Uri Serializers. The context includes the IPv6 scope. |
Scheme | 1 | The Scheme data. |
UserInfo | 2 | The UserInfo data. |
Host | 4 | The Host data. |
Port | 8 | The Port data. |
SchemeAndServer | 13 | |
Path | 16 | The LocalPath data. |
Query | 32 | The Query data. |
PathAndQuery | 48 | The LocalPath and Query data. Also see PathAndQuery. |
HttpRequestUrl | 61 | |
Fragment | 64 | The Fragment data. |
AbsoluteUri | 127 | The Scheme, UserInfo, Host, Port, LocalPath, Query, and Fragment data. |
StrongPort | 128 | The Port data. If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. If there is no default port, -1 is returned. |
HostAndPort | 132 | The Host and Port data. If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. If there is no default port, -1 is returned. |
StrongAuthority | 134 | The UserInfo, Host, and Port data. If no port data is in the Uri and a default port has been assigned to the Scheme, the default port is returned. If there is no default port, -1 is returned. |
NormalizedHost | 256 | The normalized form of the Host. |
KeepDelimiter | 1073741824 | Specifies that the delimiter should be included. |
This enumeration is used to identify the parts of a Uri. This enumeration is used with the Uri.GetComponents method.
Produto | Versões |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: