AutomaticUpdateApprovalRuleCollection.CopyTo Method (IAutomaticUpdateApprovalRule , Int32)

 

Applies To: Windows Server Update Services

Copies the entire AutomaticUpdateApprovalRuleCollection to a one-dimensional array of IAutomaticUpdateApprovalRule objects, starting at the specified index of the target array.

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

Syntax

public void CopyTo(
    IAutomaticUpdateApprovalRule[] array,
    int index
)
public:
void CopyTo(
    array<IAutomaticUpdateApprovalRule^>^ array,
    int index
)
member CopyTo : 
        array:IAutomaticUpdateApprovalRule[] *
        index:int -> unit
Public Sub CopyTo (
    array As IAutomaticUpdateApprovalRule(),
    index As Integer
)

Parameters

  • index
    Type: System.Int32

    The zero-based index in array at which copying begins.

Exceptions

Exception

Condition

ArgumentNullException

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

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

index is equal to or greater than the length of array.

-or-

The number of elements in the source collection is greater than the available space from index to the end of the destination array.

See Also

CopyTo Overload
AutomaticUpdateApprovalRuleCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top