ערוך

שתף באמצעות


RoleGroupCollection.CopyTo(RoleGroup[], Int32) Method

Definition

Copies all the items from the RoleGroupCollection collection to a compatible one-dimensional array of RoleGroup objects, starting at the specified index in the target array.

public:
 void CopyTo(cli::array <System::Web::UI::WebControls::RoleGroup ^> ^ array, int index);
public void CopyTo (System.Web.UI.WebControls.RoleGroup[] array, int index);
member this.CopyTo : System.Web.UI.WebControls.RoleGroup[] * int -> unit
Public Sub CopyTo (array As RoleGroup(), index As Integer)

Parameters

array
RoleGroup[]

A zero-based array of RoleGroup objects that receives the items copied from the collection.

index
Int32

The position in the target array at which the array starts receiving the copied items.

Remarks

Use the CopyTo method to copy the contents of the collection into the specified zero-based array. Items are copied starting at the specified index of the target array. After the items are in an array, you can use array syntax to access the items in the RoleGroupCollection collection.

Applies to

See also