Dil

NetPermission Constructors

Definition

Overloads

NetPermission(String)

[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

the name of the NetPermission.

Attributes

Remarks

Creates a new NetPermission with the specified name. The name is the symbolic name of the NetPermission, such as "setDefaultAuthenticator", etc. An asterisk may appear at the end of the name, following a ".", or by itself, to signify a wildcard match.

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)

[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

the name of the NetPermission.

actions
String

should be null.

Attributes

Remarks

Creates a new NetPermission object with the specified name. The name is the symbolic name of the NetPermission, and the actions String is currently unused and should be null.

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