Compartir a través de


UpdateCategoryCollection.Item Property (Int32)

 

Applies To: Windows Server Update Services

Retrieves or sets the member of the collection at the specified index.

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

Syntax

public IUpdateCategory this[
    int index
] { get; set; }
public:
property IUpdateCategory^ default[
    int index
] {
    IUpdateCategory^ get(int index);
    void set(int index, IUpdateCategory^ value);
}
member Item : 
        index:int -> IUpdateCategory with get, set
Public Property Item (
    index As Integer
) As IUpdateCategory

Parameters

  • index
    Type: System.Int32

    Zero-based index of the member to retrieve or set.

Property Value

Type: Microsoft.UpdateServices.Administration.IUpdateCategory

The member of the collection at the specified index.

Exceptions

Exception

Condition

ArgumentException

The category already exists in this collection.

ArgumentNullException

A member of the collection cannot be set to null.

ArgumentOutOfRangeException

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

Remarks

This property is an indexer in C#.

See Also

UpdateCategoryCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top