System.Messaging Reference (Document! X Sample)



An array of type AccessControlEntry to which the access control list entries will be copied. The array must have zero-based indexing.
The index in the array at which to begin copying the access control list entries.
CopyTo Method (AccessControlList)
Copies the entire access control list to a compatible one-dimensional array of access control entries, starting at the specified index of the target array.
Syntax
'Declaration
 
Public Sub CopyTo( _
   ByVal array() As AccessControlEntry, _
   ByVal index As Integer _
) 
'Usage
 
Dim instance As AccessControlList
Dim array() As AccessControlEntry
Dim index As Integer
 
instance.CopyTo(array, index)
public void CopyTo( 
   AccessControlEntry[] array,
   int index
)
public:
void CopyTo( 
   array<AccessControlEntry^>^ array,
   int index
) 

Parameters

array
An array of type AccessControlEntry to which the access control list entries will be copied. The array must have zero-based indexing.
index
The index in the array at which to begin copying the access control list entries.
Exceptions
ExceptionDescription
The array parameter is null.
The index parameter is less than zero.
The index parameter is greater than or equal to the length of the array parameter.-or-The number of elements in the source access control list is greater than the available space from index to the end of the destination array of access control entries.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also