Share via


UpdateCategoryCollection.Insert Method (Int32, IUpdateCategory)

 

Applies To: Windows Server Update Services

Inserts a product category into the collection.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public void Insert(
    int index,
    IUpdateCategory value
)
public:
void Insert(
    int index,
    IUpdateCategory^ value
)
member Insert : 
        index:int *
        value:IUpdateCategory -> unit
Public Sub Insert (
    index As Integer,
    value As IUpdateCategory
)

Parameters

  • index
    Type: System.Int32

    Zero-based index at which to insert the category into the collection.

Exceptions

Exception

Condition

ArgumentException

The category already exists in this collection.

ArgumentNullException

value cannot be null.

ArgumentOutOfRangeException

index cannot be less than zero or greater than UpdateCategoryCollection.Count.

See Also

Insert Overload
UpdateCategoryCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top