The IVariantDictionary::get_Item method retrieves the specified item from either the Contents or StaticObjects collection. Both the Application and Session objects provide these collections.
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