GuardedObject 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
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.
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
- 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.