NetPermission 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 |
|---|---|
| NetPermission(String) |
Initializes a legacy network-permission instance. Do not use this class for access control on Android. |
| NetPermission(String, String) |
Initializes a legacy network-permission instance with the unused actions argument. Do not use this class for access control on Android. |
NetPermission(String)
Initializes a legacy network-permission instance. Do not use this class for access control on Android.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public NetPermission(string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Net.NetPermission : string -> Java.Net.NetPermission
Parameters
- name
- String
Ignored on Android.
- Attributes
Remarks
On Android, this constructor ignores name and initializes the permission with an empty name.
Java reference for java.net.NetPermission.NetPermission.
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
NetPermission(String, String)
Initializes a legacy network-permission instance with the unused actions argument. Do not use this class for access control on Android.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public NetPermission(string? name, string? actions);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Java.Net.NetPermission : string * string -> Java.Net.NetPermission
Parameters
- name
- String
Ignored on Android.
- actions
- String
Ignored on Android.
- Attributes
Remarks
On Android, this constructor ignores both arguments and initializes the permission with an empty name.
Java reference for java.net.NetPermission.NetPermission.
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.