共用方式為


UpdateCollection.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 IUpdate this[
    int index
] { get; set; }
public:
property IUpdate^ default[
    int index
] {
    IUpdate^ get(int index);
    void set(int index, IUpdate^ value);
}
member Item : 
        index:int -> IUpdate with get, set
Public Property Item (
    index As Integer
) As IUpdate

Parameters

  • index
    Type: System.Int32

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

Property Value

Type: Microsoft.UpdateServices.Administration.IUpdate

The member of the collection at the specified index.

Exceptions

Exception

Condition

ArgumentException

The update already exists in this collection.

ArgumentNullException

Cannot set a member of the collection to null.

ArgumentOutOfRangeException

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

Remarks

This property is an indexer in C#.

See Also

UpdateCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top