The IVariantDictionary::put_Item method adds an item to either the Contents or StaticObjects collection.
HRESULT put_Item(
VARIANT VarKey, // identifier for the item to return
VARIANT var // item to add to the collection
);
Application Contents Collection, Application StaticObjects Collection, Session Contents Collection, Session StaticObjects Collection