Freigeben über


URLConnection.GetContent(Class[]) Method

Definition

Retrieves the contents of this URL connection.

[Android.Runtime.Register("getContent", "([Ljava/lang/Class;)Ljava/lang/Object;", "GetGetContent_arrayLjava_lang_Class_Handler")]
public virtual Java.Lang.Object? GetContent (Java.Lang.Class[]? classes);
[<Android.Runtime.Register("getContent", "([Ljava/lang/Class;)Ljava/lang/Object;", "GetGetContent_arrayLjava_lang_Class_Handler")>]
abstract member GetContent : Java.Lang.Class[] -> Java.Lang.Object
override this.GetContent : Java.Lang.Class[] -> Java.Lang.Object

Parameters

classes
Class[]

the Class array indicating the requested types

Returns

the object fetched that is the first match of the type specified in the classes array. null if none of the requested types are supported. The instanceof operator should be used to determine the specific kind of object returned.

Attributes

Exceptions

if an error occurs obtaining the content.

Remarks

Retrieves the contents of this URL connection.

Added in 1.3.

Java documentation for java.net.URLConnection.getContent(java.lang.Class[]).

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