The IUpdateCollection interface represents an ordered list of updates.
Methods
The IUpdateCollection interface inherits the methods of the IDispatch interface.
In addition, IUpdateCollection defines the following methods.
| Method | Description |
Add |
Adds an item to the collection.
|
Clear |
Removes all the elements from the collection.
|
Copy |
Creates a shallow read/write copy of the collection.
|
Insert |
Inserts an item into the collection at the specified position.
|
RemoveAt |
Removes the item at the specified index from the collection.
|
Properties
The IUpdateCollection interface defines the following properties.
| Property | Access type | Description |
_NewEnum | Read-only | Returns an IEnumVARIANT interface that can be used to enumerate the collection.
|
Count | Read-only | Indicates the number of elements in the collection.
|
Item | Read/write | Retrieves or changes an IUpdate interface in a collection.
|
ReadOnly | Read-only | Indicates whether an update collection is read-only.
|
Remarks
You can create an instance of this interface by using the UpdateCollection coclass. Use the Microsoft.Update.UpdateColl program identifier to create the object.
Requirements
| Minimum supported client | Windows XP, Windows 2000 Professional with SP3 |
| Minimum supported server | Windows Server 2003, Windows 2000 Server with SP3 |
| Header | Wuapi.h |
| IDL | Wuapi.idl |
| Library | Wuguid.lib |
| DLL | Wuapi.dll |
| IID | IID_IUpdateCollection is defined as 07F7438C-7709-4CA5-B518-91279288134E |
Send comments about this topic to Microsoft
Build date: 11/18/2009