Partager via


WsusCollection.Add Method (Object)

 

Applies To: Windows Server Update Services

Adds an element to the end of the collection.

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

Syntax

protected int Add(
    object value
)
protected:
int Add(
    Object^ value
)
member Add : 
        value:Object -> int
Protected Function Add (
    value As Object
) As Integer

Parameters

  • value
    Type: System.Object

    The element to add to the end of the collection.

Return Value

Type: System.Int32

The zero-based index at which the new element is indexed.

Exceptions

Exception

Condition

ArgumentNullException

value is a null reference (Nothing in Visual Basic).

ArgumentException

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

See Also

WsusCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top