UpdateCategoryCollection.Add Method (IUpdateCategory)
Applies To: Windows Server Update Services
Adds a product category to the end of the collection.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public int Add(
IUpdateCategory value
)
public:
int Add(
IUpdateCategory^ value
)
member Add :
value:IUpdateCategory -> int
Public Function Add (
value As IUpdateCategory
) As Integer
Parameters
value
Type: Microsoft.UpdateServices.Administration.IUpdateCategoryAn IUpdateCategory of the category to add.
Return Value
Type: System.Int32
Zero-based index at which the category was added to the collection.
Exceptions
Exception
Condition
The category already exists in the collection.
value cannot be null.
See Also
Add Overload
UpdateCategoryCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top