次の方法で共有


WsusCollection.Insert Method (Int32, Object)

 

Applies To: Windows Server Update Services

Inserts an element into the collection at the specified index.

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

Syntax

protected void Insert(
    int index,
    object value
)
protected:
void Insert(
    int index,
    Object^ value
)
member Insert : 
        index:int *
        value:Object -> unit
Protected Sub Insert (
    index As Integer,
    value As Object
)

Parameters

  • index
    Type: System.Int32

    The zero-based index at which value is inserted.

Exceptions

Exception

Condition

ArgumentOutOfRangeException

You can receive this exception because of either of the following reasons:

  • index is less than zero.

  • index is greater than Count.

ArgumentNullException

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

ArgumentException

value already exists in the collection.

See Also

WsusCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top