Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
7-5
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 7      CtiOs Object
Methods
GetNumProperties
The GetNumProperties method returns the number of properties in the current 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.
Return Value
COM: 
Default CTI OS return values. See 
All Others: 
An integer that is the number of properties currently a part of the object.
GetPropertyName
The GetPropertyName method returns the name of a property in a string format.
Syntax
C++: 
string GetPropertyName (int index)
COM: 
HRESULT GetPropertyName (/* [in] index, /*[out,retval]*/ name)
VB: 
GetPropertyName (index As Integer) As String
Java:
 string GetPropertyName (int iIndex)
.NET:
virtual System.Boolean GetPropertyName(int iIndex, out System.String name)
Parameters
index
An integer parameter specifying the index number of the requested property.
name
A string output parameter (return value in C++, VB, and Java) containing the property’s name.
Return Value
COM: 
Default CTI OS return values. See 
.NET: Boolean value set to true if the method call succeeds, otherwise false.
All Others: 
A string that contains the property’s name.