System.getSystemPropertyAsString()

Signature

String getSystemPropertyAsString (String propertyKey, String defaultValue)

Domain

action, condition

Description

Returns the requested System property value as a String.

Parameters

NameTypeDescription
propertyKeyStringThe property key to set a new value for.
defaultValueStringThe value to return if the requested value is not present.

Returns

TypeDescription
StringThe requested System property value as a String.

Cautions

none

Example


System.getSystemPropertyAsString ("java.io.tmpdir", "");

Result is: The String "c:/temp".