Share via


URI.ToASCIIString Method

Definition

Returns the content of this URI as a US-ASCII string.

[Android.Runtime.Register("toASCIIString", "()Ljava/lang/String;", "")]
public string? ToASCIIString ();
[<Android.Runtime.Register("toASCIIString", "()Ljava/lang/String;", "")>]
member this.ToASCIIString : unit -> string

Returns

The string form of this URI, encoded as needed so that it only contains characters in the US-ASCII charset

Attributes

Remarks

Returns the content of this URI as a US-ASCII string.

If this URI does not contain any characters in the other category then an invocation of this method will return the same value as an invocation of the #toString() toString method. Otherwise this method works as if by invoking that method and then encoding the result.

Java documentation for java.net.URI.toASCIIString().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to