RecipientInfoCollection.CopyTo Method (Array, Int32)

The CopyTo(Array, Int32) method copies the RecipientInfoCollection collection to an array.

Namespace:  System.Security.Cryptography.Pkcs
Assembly:  System.Security (in System.Security.dll)

public void CopyTo(
	Array array,
	int index
)

Parameters

array
Type: System.Array

An Array object to which the RecipientInfoCollection collection is to be copied.

index
Type: System.Int32

The zero-based index in array where the RecipientInfoCollection collection is copied.

Implements

ICollection.CopyTo(Array, Int32)

ExceptionCondition
ArgumentException

One of the arguments provided to a method was not valid.

ArgumentNullException

A null reference was passed to a method that does not accept it as a valid argument.

ArgumentOutOfRangeException

The value of an argument was outside the allowable range of values as defined by the called method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft