The GetFirstChildren method retrieves the first child item, relative from the item in the SQL Namespace hierarchy, and optionally matchesthe object type or object name.
object.GetFirstChildItem(
ItemIn ,
[matchType] ,
[matchName])
object
Expression that evaluates to an object in the Applies To list
ItemIn
Handle to the item in the namespace hierarchy
matchType
Object type to match
matchName
Object name to match
Long
HRESULT GetFirstChildItem(
HSQLNSITEM ItemIn,
SQLNSObjectType matchType,
BSTR matchName,
HSQLNSITEM *pItemOut);