StringEntity Constructors

Definition

Overloads

Name Description
StringEntity(String)

Creates an entity from a string using the default HTTP content charset.

StringEntity(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

StringEntity(String, String)

Creates an entity from a string encoded with the specified charset.

StringEntity(String)

Creates an entity from a string using the default HTTP content charset.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public StringEntity(string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Org.Apache.Http.Entity.StringEntity : string -> Org.Apache.Http.Entity.StringEntity

Parameters

s
String

The string that supplies 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

StringEntity(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected StringEntity(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.Entity.StringEntity : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.Entity.StringEntity

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

StringEntity(String, String)

Creates an entity from a string encoded with the specified charset.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public StringEntity(string? s, string? charset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Org.Apache.Http.Entity.StringEntity : string * string -> Org.Apache.Http.Entity.StringEntity

Parameters

s
String

The string that supplies the entity content.

charset
String

The charset used to encode the string, or null to use the default HTTP content charset.

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