ClassLoader.GetResourceAsStream(String) Method
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 an input stream for reading the specified resource.
[Android.Runtime.Register("getResourceAsStream", "(Ljava/lang/String;)Ljava/io/InputStream;", "GetGetResourceAsStream_Ljava_lang_String_Handler")]
public virtual System.IO.Stream? GetResourceAsStream (string? name);
[<Android.Runtime.Register("getResourceAsStream", "(Ljava/lang/String;)Ljava/io/InputStream;", "GetGetResourceAsStream_Ljava_lang_String_Handler")>]
abstract member GetResourceAsStream : string -> System.IO.Stream
override this.GetResourceAsStream : string -> System.IO.Stream
- name
- String
The resource name
An input stream for reading the resource, or null
if the resource could not be found
- Attributes
Returns an input stream for reading the specified resource.
The search order is described in the documentation for #getResource(String)
.
Added in 1.1.
Java documentation for java.lang.ClassLoader.getResourceAsStream(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.