次の方法で共有


URL.ToURI Method

Definition

Returns a java.net.URI equivalent to this URL.

[Android.Runtime.Register("toURI", "()Ljava/net/URI;", "")]
public Java.Net.URI? ToURI ();
[<Android.Runtime.Register("toURI", "()Ljava/net/URI;", "")>]
member this.ToURI : unit -> Java.Net.URI

Returns

URI

a URI instance equivalent to this URL.

Attributes

Exceptions

if this URL cannot be converted into a URI.

Remarks

Returns a java.net.URI equivalent to this URL. This method functions in the same way as new URI (this.toString()).

Note, any URL instance that complies with RFC 2396 can be converted to a URI. However, some URLs that are not strictly in compliance can not be converted to a URI.

Added in 1.5.

Java documentation for java.net.URL.toURI().

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