Share via


GuardedObject Constructors

Definition

Overloads

GuardedObject(Object, IGuard)

Constructs a GuardedObject using the specified object and guard.

GuardedObject(IntPtr, JniHandleOwnership)

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

GuardedObject(Object, IGuard)

Constructs a GuardedObject using the specified object and guard.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Object;Ljava/security/Guard;)V", "")]
public GuardedObject (Java.Lang.Object? object, Java.Security.IGuard? guard);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Object;Ljava/security/Guard;)V", "")>]
new Java.Security.GuardedObject : Java.Lang.Object * Java.Security.IGuard -> Java.Security.GuardedObject

Parameters

object
Object

the object to be guarded.

guard
IGuard

the Guard object that guards access to the object.

Attributes

Remarks

Constructs a GuardedObject using the specified object and guard. If the Guard object is null, then no restrictions will be placed on who can access the object.

Java documentation for java.security.GuardedObject.GuardedObject(java.lang.Object, java.security.Guard).

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

GuardedObject(IntPtr, JniHandleOwnership)

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

protected GuardedObject (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.GuardedObject : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.GuardedObject

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