IURLStreamHandlerFactory.CreateURLStreamHandler(String) 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.
Creates a new URLStreamHandler
instance with the specified
protocol.
[Android.Runtime.Register("createURLStreamHandler", "(Ljava/lang/String;)Ljava/net/URLStreamHandler;", "GetCreateURLStreamHandler_Ljava_lang_String_Handler:Java.Net.IURLStreamHandlerFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Net.URLStreamHandler? CreateURLStreamHandler (string? protocol);
[<Android.Runtime.Register("createURLStreamHandler", "(Ljava/lang/String;)Ljava/net/URLStreamHandler;", "GetCreateURLStreamHandler_Ljava_lang_String_Handler:Java.Net.IURLStreamHandlerFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateURLStreamHandler : string -> Java.Net.URLStreamHandler
Parameters
- protocol
- String
the protocol ("ftp
",
"http
", "nntp
", etc.).
Returns
a URLStreamHandler
for the specific protocol, or null
if this factory cannot create a handler for the specific
protocol
- Attributes
Remarks
Creates a new URLStreamHandler
instance with the specified protocol.
Java documentation for java.net.URLStreamHandlerFactory.createURLStreamHandler(java.lang.String)
.
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.