Mono Class Library: System.Security.PermissionSet Overview | Members

System.Security.PermissionSet.CopyTo Method

Copies the permission objects in the current instance to the specified location in the specified Array .

public virtual void CopyTo (Array array, int index)

Parameters

array
The destination Array .
index
A int that specifies the zero-based starting position in the array at which to begin copying.

Exceptions

TypeReason
ArgumentExceptionarray has more than one dimension.
IndexOutOfRangeExceptionindex is outside the range of allowable values for array.
ArgumentNullExceptionarray is null.

Remarks

Note: This method is implemented to support the ICollection interface.

Operation
As described above.

The default implementation uses the Array.SetValue(object, int)(object, int) method to add the value to the array.

Note to Inheritors
Override this method to customize the manner in which elements are added to array .

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0