次の方法で共有


Security.SetProperty(String, String) Method

Definition

Sets a security property value.

[Android.Runtime.Register("setProperty", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public static void SetProperty (string? key, string? datum);
[<Android.Runtime.Register("setProperty", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
static member SetProperty : string * string -> unit

Parameters

key
String

the name of the property to be set.

datum
String

the value of the property to be set.

Attributes

Remarks

Sets a security property value.

First, if there is a security manager, its checkPermission method is called with a java.security.SecurityPermission("setProperty."+key) permission to see if it's ok to set the specified security property value.

Java documentation for java.security.Security.setProperty(java.lang.String, java.lang.String).

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