Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Collection of updates.
To retrieve this collection, call one of the following methods:
- IUpdate.GetRelatedUpdates(UpdateRelationship)
- IUpdateCategory.GetUpdates()
- IUpdateCategory.GetUpdates(ApprovedStates)
- IUpdateClassification.GetUpdates(ApprovedStates)
- IUpdateClassification.GetUpdates()
- IUpdateServer.GetUpdates()
- IUpdateServer.GetUpdates(ApprovedStates, DateTime, DateTime, UpdateCategoryCollection, UpdateClassificationCollection)
- IUpdateServer.SearchUpdates(String)
The UpdateCollection class is derived from the Microsoft.UpdateServices.Administration.WsusCollection class.
Public Constructors
The UpdateCollection class has the following public constructor.
| Constructor | Description |
|---|---|
| UpdateCollection() | Initializes a new instance of the UpdateCollection class. |
Public Methods
The UpdateCollection class has the following public methods.
| Method | Description |
|---|---|
| Add(IUpdate) | Adds an update to the end of the collection. |
| AddRange(IUpdate[]) | Adds an array of updates to the end of the collection. |
| AddRange(UpdateCollection) | Adds the members of an update collection to the end of the collection. |
| Clear() | Removes all objects from the CollectionBase instance. |
| Contains(IUpdate) | Determines if the collection contains the specified update. |
| CopyTo(IUpdate[], Int32) | Copies the updates in the collection to a one-dimensional array. |
| Equals(Object) | Determines if the specified Object is equal to the current Object. |
| Equals(Object, Object) | Static (Shared). Determines whether the specified Object instances are considered equal. |
| GetEnumerator() | Retrieves an enumerator that iterates through the CollectionBase instance. |
| GetHashCode() | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
| GetType() | Retrieves the Type of the current instance. |
| IndexOf(IUpdate) | Determines if the collection contains the specified update. |
| Insert(Int32, IUpdate) | Inserts an update into the collection. |
| ReferenceEquals(Object, Object) | Static (Shared). Determines if the specified Object instances are the same instance. |
| Remove(IUpdate) | Removes the update from the collection. |
| RemoveAt(Int32) | Removes the element at the specified index of the CollectionBase instance. |
| ToString() | Retrieves a String that represents the current Object. |
Public Properties
The UpdateCollection class has the following public properties.
| Property | Description |
|---|---|
| Count | Retrieves the number of members in the collection. |
| Item | Retrieves or sets the member of the collection at the specified index. |
Requirements
| Server | Requires Windows Server 2003 or Windows 2000 Server SP4 and later. |
| Namespace | Defined in Microsoft.UpdateServices.Administration. |
| Assembly | Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll). |
| .NET Framework | Requires .NET Framework 1.1. |