Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.GetProperty
Gets a property value from the currently loaded Sites property files.
The
GetProperty
method provides the same functionality as the<CSVAR NAME="CS.Property.PROPERTY_NAME"/>
command in XML.There are two variants of this method:
- GetProperty (Variant 1) : Gets a property value based on the property name you specify.
- GetProperty (Variant 2) : Gets a property value based on the property name you specify, allows you to specify the property files you want to search, and allows you to append the current property file.
ICS.GetProperty
Gets a property value from the currently loaded Sites property files.
Syntax
public String GetProperty(String name)Parameters
name
- The name of the property to get.
Description
The
GetProperty
method gets a property value from the currently loaded Sites property files.This method provides the same functionality as the following XML command:
<CSVAR NAME="CS.Property.PROPERTY_NAME"/>
Returns
The value of the property. This value can be
null
or an empty string.Example
The following code gets the value of the
cs.emailhost
property:String sEmailHost = cs.GetProperty( "cs.emailhost" ); if ( !Utilities.goodString( sEmailHost ) ) { // no Email Host set }See Also
LoadProperty , RestoreProperty
ICS.GetProperty
Gets a property value from the specified property files.
Syntax
public String GetProperty(String name, String files, boolean append)Parameters
name
- The name of the property to get.
files
- A semicolon-separated list of property files.
append
- A value of
true
appends the specified property files to current property file.
Description
The
GetProperty
method gets a property value from the currently loaded Sites property files. This tag will not decrypt the value of password properties.This method provides the same functionality as the following XML tag:
<CSVAR NAME="CS.Property.PROPERTY_NAME"/>Returns
The value of the property. This value can be
null
or an empty string.Example
The following code gets the value of the
cs.emailhost
property:
String sUsername =cs.GetProperty("cs.emailhost",
"futuretense.ini", true);
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.