Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Sets various properties to modify the behavior of the class instance.
public virtual bool SetProperty(const char * name, const char * value)
name The name of the property to set. For a list of valid property names, see table.
value The value to set for the property. The string specified must contain less than DBCS_MAX_PROPERTY_LEN bytes.
True when the property was successfully set; otherwise, returns false. When false is returned, you can call the GetErrorInfo method for more information about the failure.
Changes to property values only affect synchronization requests made after the property value was changed.
The server path property can be set to specify the directory from which the client should start dbmlsync.exe when the StartServer method is called. When this property is not set, dbmlsync.exe is found using the PATH environment variable. If there are multiple versions of SQL Anywhere installed on your computer, it is recommended that you specify the location of dbmlsync.exe using the server path property because the PATH environment variable may locate a dbmlsync executable from another installed version of SQL Anywhere. For example,
ret = cli->SetProperty("server path", "c:\\sa16\\bin32");
The properties control the types of events that are returned by the GetEvent method. By disabling events that you do not require you may be able to improve performance. An event type is enabled by setting the corresponding property to "1" and disabled by setting the property to "0".
The following is a table of available property names and the event types that each name controls:
|Property name||Event types controlled||Default value|
|enable info msgs||DBSC_EVENTTYPE_INFO_MSG||1|
|enable progress text||DBSC_EVENTTYPE_PROGRESS_TEXT||0|
|enable sync start and done||
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|