EntityUtils.ToString 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.
Overloads
| Name | Description |
|---|---|
| ToString(IHttpEntity) |
Reads an HTTP entity's content into a string. |
| ToString(IHttpEntity, String) |
Reads an HTTP entity's content into a string, using its |
ToString(IHttpEntity)
Reads an HTTP entity's content into a string.
[Android.Runtime.Register("toString", "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;", "")]
public static string? ToString(Org.Apache.Http.IHttpEntity? entity);
[<Android.Runtime.Register("toString", "(Lorg/apache/http/HttpEntity;)Ljava/lang/String;", "")>]
static member ToString : Org.Apache.Http.IHttpEntity -> string
Parameters
- entity
- IHttpEntity
The HTTP entity whose content is read.
Returns
A string containing the entity content.
- Attributes
Exceptions
Remarks
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
ToString(IHttpEntity, String)
Reads an HTTP entity's content into a string, using its Content-Type character set or a default character set.
[Android.Runtime.Register("toString", "(Lorg/apache/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? ToString(Org.Apache.Http.IHttpEntity? entity, string? defaultCharset);
[<Android.Runtime.Register("toString", "(Lorg/apache/http/HttpEntity;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member ToString : Org.Apache.Http.IHttpEntity * string -> string
Parameters
- entity
- IHttpEntity
The HTTP entity whose content is read.
- defaultCharset
- String
The character set to use when the entity does not specify one.
Returns
A string containing the entity content.
- Attributes
Exceptions
Remarks
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.