PathPermission 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 |
|---|---|
| PathPermission(Parcel) |
Restores a path pattern and its permission names from a parcel. |
| PathPermission(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| PathPermission(String, Pattern, String, String) |
Creates a path matcher with associated read and write permission names. |
PathPermission(Parcel)
Restores a path pattern and its permission names from a parcel.
[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public PathPermission(Android.OS.Parcel? src);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Content.PM.PathPermission : Android.OS.Parcel -> Android.Content.PM.PathPermission
Parameters
- src
- Parcel
The parcel containing the pattern and its read and write permission names.
- Attributes
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
PathPermission(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected PathPermission(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.PM.PathPermission : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.PM.PathPermission
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
PathPermission(String, Pattern, String, String)
Creates a path matcher with associated read and write permission names.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V", "")]
public PathPermission(string? pattern, Android.OS.Pattern type, string? readPermission, string? writePermission);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Content.PM.PathPermission : string * Android.OS.Pattern * string * string -> Android.Content.PM.PathPermission
Parameters
- pattern
- String
The path pattern passed to the pattern matcher.
- type
- Pattern
The rule used to match the supplied pattern against a path.
- readPermission
- String
The read-permission name to associate with the path pattern.
- writePermission
- String
The write-permission name to associate with the path pattern.
- Attributes
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.