JniArgumentValue Constructors
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 |
|---|---|
| JniArgumentValue(IJavaPeerable) |
Creates an argument from a managed peer's JNI handle. |
| JniArgumentValue(UInt64) |
Creates a Java long argument from an unsigned 64-bit value. |
| JniArgumentValue(UInt32) |
Creates a Java int argument from an unsigned 32-bit value. |
| JniArgumentValue(UInt16) |
Creates a Java short argument from an unsigned 16-bit value. |
| JniArgumentValue(Single) |
Creates a Java single-precision floating-point argument. |
| JniArgumentValue(IntPtr) |
Creates an object reference argument from a JNI handle. |
| JniArgumentValue(Int64) |
Creates a Java long integer argument. |
| JniArgumentValue(SByte) |
Creates a signed Java byte argument. |
| JniArgumentValue(Int16) |
Creates a Java short integer argument. |
| JniArgumentValue(Double) |
Creates a Java double-precision floating-point argument. |
| JniArgumentValue(Char) |
Creates a Java character argument. |
| JniArgumentValue(Byte) |
Creates a Java byte argument from an unsigned byte value. |
| JniArgumentValue(Boolean) |
Creates a Java boolean argument. |
| JniArgumentValue(JniObjectReference) |
Creates an argument from a JNI object reference handle. |
| JniArgumentValue(Int32) |
Creates a Java integer argument. |
JniArgumentValue(IJavaPeerable)
Creates an argument from a managed peer's JNI handle.
public JniArgumentValue(Java.Interop.IJavaPeerable? value);
new Java.Interop.JniArgumentValue : Java.Interop.IJavaPeerable -> Java.Interop.JniArgumentValue
Parameters
- value
- IJavaPeerable
The managed peer whose JNI handle is to be stored, or null for a null Java reference.
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
JniArgumentValue(UInt64)
Creates a Java long argument from an unsigned 64-bit value.
public JniArgumentValue(ulong value);
new Java.Interop.JniArgumentValue : uint64 -> Java.Interop.JniArgumentValue
Parameters
- value
- UInt64
The unsigned value to cast to a signed Java long.
Remarks
The value is cast to long before it is stored.
Applies to
JniArgumentValue(UInt32)
Creates a Java int argument from an unsigned 32-bit value.
public JniArgumentValue(uint value);
new Java.Interop.JniArgumentValue : uint32 -> Java.Interop.JniArgumentValue
Parameters
- value
- UInt32
The unsigned value to cast to a signed Java int.
Remarks
The value is cast to int before it is stored; it is not widened to a Java long.
Applies to
JniArgumentValue(UInt16)
Creates a Java short argument from an unsigned 16-bit value.
public JniArgumentValue(ushort value);
new Java.Interop.JniArgumentValue : uint16 -> Java.Interop.JniArgumentValue
Parameters
- value
- UInt16
The unsigned value to cast to a signed Java short.
Remarks
The value is cast to short before it is stored; it is not widened to a Java integer.
Applies to
JniArgumentValue(Single)
Creates a Java single-precision floating-point argument.
public JniArgumentValue(float value);
new Java.Interop.JniArgumentValue : single -> Java.Interop.JniArgumentValue
Parameters
- value
- Single
The Java float argument value.
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
JniArgumentValue(IntPtr)
Creates an object reference argument from a JNI handle.
public JniArgumentValue(IntPtr value);
new Java.Interop.JniArgumentValue : nativeint -> Java.Interop.JniArgumentValue
Parameters
- value
-
IntPtr
nativeint
The JNI object reference handle to store.
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
JniArgumentValue(Int64)
Creates a Java long integer argument.
public JniArgumentValue(long value);
new Java.Interop.JniArgumentValue : int64 -> Java.Interop.JniArgumentValue
Parameters
- value
- Int64
The Java long argument value.
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
JniArgumentValue(SByte)
Creates a signed Java byte argument.
public JniArgumentValue(sbyte value);
new Java.Interop.JniArgumentValue : sbyte -> Java.Interop.JniArgumentValue
Parameters
- value
- SByte
The signed Java byte argument value.
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
JniArgumentValue(Int16)
Creates a Java short integer argument.
public JniArgumentValue(short value);
new Java.Interop.JniArgumentValue : int16 -> Java.Interop.JniArgumentValue
Parameters
- value
- Int16
The Java short argument value.
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
JniArgumentValue(Double)
Creates a Java double-precision floating-point argument.
public JniArgumentValue(double value);
new Java.Interop.JniArgumentValue : double -> Java.Interop.JniArgumentValue
Parameters
- value
- Double
The Java double argument value.
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
JniArgumentValue(Char)
Creates a Java character argument.
public JniArgumentValue(char value);
new Java.Interop.JniArgumentValue : char -> Java.Interop.JniArgumentValue
Parameters
- value
- Char
The Java char argument value.
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
JniArgumentValue(Byte)
Creates a Java byte argument from an unsigned byte value.
public JniArgumentValue(byte value);
new Java.Interop.JniArgumentValue : byte -> Java.Interop.JniArgumentValue
Parameters
- value
- Byte
The unsigned byte value to cast to a signed Java byte.
Remarks
The value is cast to sbyte before it is stored; it is not widened to a Java integer.
Applies to
JniArgumentValue(Boolean)
Creates a Java boolean argument.
public JniArgumentValue(bool value);
new Java.Interop.JniArgumentValue : bool -> Java.Interop.JniArgumentValue
Parameters
- value
- Boolean
The Java boolean argument value.
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
JniArgumentValue(JniObjectReference)
Creates an argument from a JNI object reference handle.
public JniArgumentValue(Java.Interop.JniObjectReference value);
new Java.Interop.JniArgumentValue : Java.Interop.JniObjectReference -> Java.Interop.JniArgumentValue
Parameters
- value
- JniObjectReference
The JNI reference whose handle is to be stored. The reference is not copied or disposed.
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
JniArgumentValue(Int32)
Creates a Java integer argument.
public JniArgumentValue(int value);
new Java.Interop.JniArgumentValue : int -> Java.Interop.JniArgumentValue
Parameters
- value
- Int32
The Java int argument value.
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.