Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
Chapter 7 CtiOs Object
Methods
7-6
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
.NET:The Boolean value true if the value is successfully set; otherwise false.
Remarks
The following example code gets the last error on the current thread and logs the
error message. If GetLastError fails, the code writes a warning message to the log
file.
error message. If GetLastError fails, the code writes a warning message to the log
file.
// First get the last error System.Int32 myLastError;
bool success = GetLastError(out myLastError);
if (!success)
{
// log a message indicating that GetLastError failed
}
else
{
//log a message that indicates what the last error was
LOGBYID(Cisco.CtiOs.Cil.TraceLevel.WARN, “GetLastError returned
last error =” + myLastError);
}
GetNumProperties
The GetNumProperties method returns the number of properties in the current
object.
object.
Syntax
C++:
int GetNumProperties ()
COM:
HRESULT GetNumProperties (/*[out,retval]*/ int * num
VB:
GetNumProperties () As Long
Java, .NET:
int GetNumProperties()
Parameters
num
In the COM version, an output parameter (return value in VB, C++, Java, and
.NET) that contains an integer that is the number of properties in the object.
.NET) that contains an integer that is the number of properties in the object.