Uri.Parts
Retorna as partes do URI absoluto de entrada como um registro.
Syntax
Uri.Parts(
absoluteUri as text
) as record
Remarks
Retorna as partes do absoluteUri
de entrada como um registro, contendo valores como Scheme, Host, Port, Path, Query, Fragment, UserName e Password.
Examples
Example #1
Localize as partes do URI absoluto "www.adventure-works.com".
Uri.Parts("www.adventure-works.com")
Result:
[
Scheme = "http",
Host = "www.adventure-works.com",
Port = 80,
Path = "/",
Query = [],
Fragment = "",
UserName = "",
Password = ""
]
Example #2
Decodificar uma cadeia de caracteres codificada por percentual.
let
UriUnescapeDataString = (data as text) as text => Uri.Parts("http://contoso?a=" & data)[Query][a]
in
UriUnescapeDataString("%2Bmoney%24")
Result:
"+money$"
Category
Uri