Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.RestoreProperty
Sets the property file to the default Content Server property file (usually
futuretense.ini
).Syntax
public boolean RestoreProperty(boolean bClose)Parameters
bClose
- Controls whether to close the connection to a database that was opened using the current properties. If you set
bClose
totrue,
any open database connection specified by the current properties will be closed before restoring the defaults. This invalidates any resultsets cached against that database. If access to those resultsets is required afterRestoreProperty
, you should setbClose
tofalse
. This will keep the connection open and resultsets against the database will be available.
Returns
Returns
true
on success,false
on failure.Example
// LoadProperty, ft.new is a property in test.ini ics.ClearErrno(); success = ics.LoadProperty("test.ini"); ics.SetVar("var1", "errno:" + ics.GetErrno
() + ", return:" + success); // RestoreProperty, restores previous set into the system ics.ClearErrno(); success = ics.RestoreProperty(true); ics.SetVar("var2", "errno:" + cs.GetErrno
() + ", return:" + success);See Also
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.