Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 508
   
7-6
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 8.0(1)
Chapter 7      CtiOs Object
Methods
GetPropertyType
The GetPropertyType method returns the data type of the specified property.
Syntax
C++:
int GetPropertyType (string& key)
int GetPropertyType (int key)
int GetPropertyType (char* key)
COM:
HRESULT GetPropertyType (/*[in]*/ VARIANT* key, /*[out,retval]*/ int* value)
VB:
GetPropertyType (key As VARIANT) As Int
Java:
int GetPropertyType(string sPropName)
int GetPropertyType(int key)
.NET:
virtual ArgDataType GetPropertyType(Enum_CtiOs eKeyID)
virtual ArgDataType GetPropertyType(System.String sPropName)
Parameters
key
Keyword ID name of the property whose type you want. In .NET, eKeyId is the Enum_CtiOs 
Keyword ID of the property.
COM:value
An integer pointer to the value of the type
Return Value
COM:
 
Default HRESULT return value. See 
Others: An integer indicating the property’s type with the following possible values:
Table 7-2
GetPropertyType Values
Argument Type
Description
ARG_NOTSET
Argument type not determined
ARG_INT
Signed integer
ARG_SHORT
2 bytes signed integer
ARG_BOOL
1 byte integer
ARG_STRING
C++, COM: STL character string
VB .NET: String object
ARG_ARGARRAY
Variable length array of Arg
ARG_UINT
32 bit unsigned int
ARG_USHORT
16 bit unsigned short int
ARG_ARGUMENT
Arguments array
ARG_REFERENCE
Contains a reference to an object of a 
CtiOsObject derived class