FileEntity FileEntity Constructors

Definition

Overloads

FileEntity(File, String) FileEntity(File, String)
FileEntity(IntPtr, JniHandleOwnership) FileEntity(IntPtr, JniHandleOwnership)

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

FileEntity(File, String) FileEntity(File, String)

[Android.Runtime.Register(".ctor", "(Ljava/io/File;Ljava/lang/String;)V", "")]
public FileEntity (Java.IO.File file, string contentType);
new Org.Apache.Http.Entity.FileEntity : Java.IO.File * string -> Org.Apache.Http.Entity.FileEntity

Parameters

file
File File
contentType
String String

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.

FileEntity(IntPtr, JniHandleOwnership) FileEntity(IntPtr, JniHandleOwnership)

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

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

Parameters

javaReference
IntPtr IntPtr

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

transfer
JniHandleOwnership 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