BasicPermission 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 |
|---|---|
| BasicPermission(String) | |
| BasicPermission(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| BasicPermission(String, String) |
BasicPermission(String)
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public BasicPermission(string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Security.BasicPermission : string -> Java.Security.BasicPermission
Parameters
- name
- String
the name of the BasicPermission.
- Attributes
Remarks
Creates a new BasicPermission with the specified name. Name is the symbolic name of the permission, such as "setFactory", "print.queueJob", or "topLevelWindow", etc.
Java reference for java.security.BasicPermission.BasicPermission.
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
BasicPermission(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected BasicPermission(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.BasicPermission : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.BasicPermission
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.
Applies to
BasicPermission(String, String)
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public BasicPermission(string? name, string? actions);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Java.Security.BasicPermission : string * string -> Java.Security.BasicPermission
Parameters
- name
- String
the name of the BasicPermission.
- actions
- String
ignored.
- Attributes
Remarks
Creates a new BasicPermission object with the specified name. The name is the symbolic name of the BasicPermission, and the actions String is currently unused.
Java reference for java.security.BasicPermission.BasicPermission.
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.