Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 500
   
12-14
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 12      Helper Classes
Arguments Class
Return Value
COM: Default HRESULT return values. See 
Others: A reference to the Arg structure that is a copy of the object.
CreateInstance (C++ and COM only)
The CreateInstance method creates an object of type Arguments class and sets the reference count of the 
object to 1. It is important to release the object when it is no longer in use in the program.
Syntax
C++:
static Arguments & CreateInstance()
static bool CreateInstance(Arguments ** args)
COM:
Not exposed, called by CoCreateInstance.
VB:
Not exposed, called by New.
Java, .NET:
Not implemented.
Parameters
args
A pointer to the newly created Arguments structure.
Return Value
COM: Default HRESULT return values. See 
Others: Either a reference to the newly created Arguments structure or a boolean indicating method 
success.
Remarks
C++, COM: Internally this method increments the Arg’s reference count, so do not call AddRef(). 
However, you must call Release() after you are finished with the Arg.
DumpArgs
The DumpArgs method builds a string showing all of the members of the Arguments structure in the 
form “key1 = value1; key2 = value2;...”. It is primarily used for debugging.
Syntax
C++:
string DumpArgs()
COM:
HRESULT DumpArgs([out,retval] BSTR* 
arg_string
);
VB:  
DumpArgs() as String
Java, .NET:
string DumpArgs()