UpdateApprovalCollection.CopyTo(IUpdateApproval , Int32)

Copies the update approvals in the collection to a one-dimensional array.

public void CopyTo(IUpdateApproval[]array,
Int32index);
Public Sub CopyTo( _
  ByVal array() As IUpdateApproval, _
  ByVal index As Int32 _
)

Parameters

  • array
    Array of IUpdateApproval found in the collection.
  • index
    Zero-based index that specifies the location in the array at which to begin adding the update approvals.

Return Value

This method does not return a value.

Exceptions

Exception type Condition
System.ArgumentException Can occur because of either of the following reasons:

  • index is greater than or equal to the length of the array.
  • The number of elements from index to the end of the array is less than the number of members in the collection.
System.ArgumentNullException array cannot be null.
System.ArgumentOutOfRangeException array cannot be less than zero.

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.