Sdílet prostřednictvím


Security.GetProperty(String) Method

Definition

Gets a security property value.

[Android.Runtime.Register("getProperty", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? GetProperty (string? key);
[<Android.Runtime.Register("getProperty", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
static member GetProperty : string -> string

Parameters

key
String

the key of the property being retrieved.

Returns

the value of the security property corresponding to key.

Attributes

Remarks

Gets a security property value.

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

Java documentation for java.security.Security.getProperty(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