Evidence::CopyTo Method (Array^, Int32)
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Return to top
Copies evidence objects to an Array.
Assembly: mscorlib (in mscorlib.dll)
public: [ObsoleteAttribute("Evidence should not be treated as an ICollection. Please use the GetHostEnumerator and GetAssemblyEnumerator methods rather than using CopyTo.")] virtual void CopyTo( Array^ array, int index ) sealed
Parameters
- array
-
Type:
System::Array^
The target array to which to copy evidence objects.
- index
-
Type:
System::Int32
The zero-based position in the array to which to begin copying evidence objects.
Implements
ICollection::CopyTo(Array^, Int32)| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | index is outside the range of the target array. |
The following code example shows the use of the CopyTo method. This example is part of a larger example provided for the Evidence class.
.NET Framework
Available since 1.1
Available since 1.1
Show: