URL.ToURI Method
Definition
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.
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
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.