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
array
Type: Microsoft.UpdateServices.Administration.IAutomaticUpdateApprovalRule[]The destination array of IAutomaticUpdateApprovalRule objects. The array is treated as zero-based.
index
Type: System.Int32The zero-based index in array at which copying begins.
Exceptions
Exception
Condition
array is a null reference (Nothing in Visual Basic).
index is less than zero.
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