Int64Ref 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 |
|---|---|
| Int64Ref(Int64) |
Creates a reference that holds a signed 64-bit integer. |
| Int64Ref(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
Int64Ref(Int64)
Creates a reference that holds a signed 64-bit integer.
[Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=28)]
public Int64Ref(long value);
[<Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=28)>]
new Android.Systems.Int64Ref : int64 -> Android.Systems.Int64Ref
Parameters
- value
- Int64
The initial integer stored in the reference.
- Attributes
Remarks
The initial value is assigned directly to Value.
Applies to
Int64Ref(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected Int64Ref(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Systems.Int64Ref : nativeint * Android.Runtime.JniHandleOwnership -> Android.Systems.Int64Ref
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies whether ownership of the JNI reference transfers to this instance.
Remarks
The runtime calls this constructor to create a managed representation of an existing Java object.