Share via


AutomaticUpdateApprovalRuleCollection.Item Property (Int32)

 

Applies To: Windows Server Update Services

Gets or sets the element at the specified index. In C#, this property is the indexer for the AutomaticUpdateApprovalRuleCollection class.

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

Syntax

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

Parameters

  • index
    Type: System.Int32

    The zero-based index of the element to get or set.

Property Value

Type: Microsoft.UpdateServices.Administration.IAutomaticUpdateApprovalRule

The IAutomaticUpdateApprovalRule object at the specified index.

Exceptions

Exception

Condition

ArgumentNullException

Attempted to set the value to null.

ArgumentOutOfRangeException

index is less than zero

-or-

index is equal or greater than Count

ArgumentException

Attempted set to a value already in the collection at a different index.

See Also

AutomaticUpdateApprovalRuleCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top