newObjects-logo.gif (1024 bytes) ScriptManager2 reference
IDispatch* SCPHOSTCLNT::Item(
LPCTSTR szItemName // null terminated string with the item name
);
IDispatch* SCPHOSTCLNT::Item(
int nItemIndex // Index of the item in the collection
);

Obtains IDispatch interface of the corresponding item from the namespaces collection. Returns NULL if the item does not exist. Numeric ideces are 1 - based.

 

Remarks:

Using enumerators in C++ is not comfort as in the script languages or Visual Basic thus _NewEnum property is not packed. If someone is interested in this please contact us.

See also:

Script Manager2 Item property

newObjects Copyright newObjects 2001-2005