JavaSystem.ClearProperty(String) Method

Definition

Removes the system property indicated by the specified key.

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

Parameters

key
String

the name of the system property to be removed.

Returns

the previous string value of the system property, or null if there was no property with that key.

Attributes

Exceptions

if the argument is null.

if the argument is empty.

Remarks

Removes the system property indicated by the specified key.

First, if a security manager exists, its SecurityManager.checkPermission method is called with a PropertyPermission(key, "write") permission. This may result in a SecurityException being thrown. If no exception is thrown, the specified property is removed.

Added in 1.5.

Java documentation for java.lang.System.clearProperty(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