The IVariantDictionary::get_Key method returns a unique identifier for an item in either the Contents or StaticObjects collection.
HRESULT get_Item(
VARIANT VarKey, // identifier for the item to return
VARIANT*pvar // pointer to the item that is returned
);
Application Contents Collection, Application StaticObjects Collection, Session Contents Collection, Session StaticObjects Collection