RecipientInfoCollection.CopyTo Method (RecipientInfo[], Int32)

 

The CopyTo(RecipientInfo[], Int32) method copies the RecipientInfoCollection collection to a RecipientInfo array.

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

public void CopyTo(
	RecipientInfo[] array,
	int index
)

Parameters

array
Type: System.Security.Cryptography.Pkcs.RecipientInfo[]

An array of RecipientInfo objects where the RecipientInfoCollection collection is to be copied.

index
Type: System.Int32

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

Exception Condition
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
Available since 2.0
Return to top
Show: