KeyContainerPermissionAccessEntryCollection.CopyTo Method (KeyContainerPermissionAccessEntry[], Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Copies the elements of the collection to a compatible one-dimensional array, starting at the specified index of the target array.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

member CopyTo : 
        array:KeyContainerPermissionAccessEntry[] *
        index:int -> unit

Parameters

array
Type: System.Security.Permissions.KeyContainerPermissionAccessEntry[]

The one-dimensional KeyContainerPermissionAccessEntry array that is the destination of the elements copied from the current collection.

index
Type: System.Int32

The index in array at which copying begins.

Exception Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than the lower bound of array.

ArgumentException

array is multidimensional.

-or-

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

.NET Framework
Available since 2.0
Return to top
Show: