Sets various properties to modify the behavior of the class instance.
Public Function SetProperty(
ByVal name As String,
ByVal value As String
) As Boolean
public Boolean SetProperty(String name, String 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.
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:\\sa12\\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 errors | DBSC_EVENTTYPE_ERROR_MSG | 1 |
enable warnings | DBSC_EVENTTYPE_WARNING_MSG | 1 |
enable info msgs | DBSC_EVENTTYPE_INFO_MSG | 1 |
enable progress | DBSC_EVENTTYPE_PROGRESS_INDEX | 0 |
enable progress text | DBSC_EVENTTYPE_PROGRESS_TEXT | 0 |
enable title | DBSC_EVENTTYPE_TITLE | 0 |
enable sync start | DBSC_EVENTTYPE_SYNC_START | 1 |
enable sync done | DBSC_EVENTTYPE_SYNC_DONE | 1 |
enable sync start and done |
DBSC_EVENTTYPE_SYNC_START DBSC_EVENTTYPE_SYNC_DONE |
1 |
enable status |
DBSC_EVENTTYPE_ML_CONNECT DBSC_EVENTTYPE_UPLOAD_COMMITTED DBSC_EVENTTYPE_DOWNLOAD_COMMITTED |
1 |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |