This method retrieves the specified object from the collection.
HRESULT get_Item(
VARIANT sItem,
IRepositoryObject **ppIReposObj
);
Parameters
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.
Remarks
When this method is invoked through the ITargetObjectCol interface (which inherits this method from the IObjectCol interface), an object can also be retrieved by name, but only if it is the destination object of a naming relationship.
This method returns a specific version of the item. To choose which version, it uses the Microsoft® Repository Resolution Strategy.