Windows Dev Center

Uri.DisplayIri | displayIri property

Gets the decoded unicode characters that make up the current URI.

Syntax


var displayIri = uri.displayIri;

Property value

Type: String [JavaScript] | Platform::String [C++]

The decoded unicode characters, when possible. Unsafe values are renamed as percent-encoded UTF-8. Characters in the hostname are decoded if they were encoded usingPunycode.

Remarks

The DisplayIri property is an attempted decode of the string as seen in the AbsoluteCanonicalUri property. You might use this string for display to the user, where showing the encodings would be distracting and would make link text that parallels the Uniform Resource Identifier (URI) difficult to read as text. Unsafe values (values that can't be decoded under the user's codepage) are kept as percent-encoded UTF-8.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

See also

Uri
AbsoluteCanonicalUri

 

 

Show:
© 2015 Microsoft