CopyTo Method
Copies all the elements in the current instance to a compatible one-dimensional ContentSelectionContext array, starting at the specified index of the target array.
Namespace: Microsoft.CommerceServer.Runtime.Targeting
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub CopyTo ( _
array As ContentSelectionContext(), _
index As Integer _
)
'Usage
Dim instance As ContentSelectionContextCollection
Dim array As ContentSelectionContext()
Dim index As Integer
instance.CopyTo(array, index)
public void CopyTo(
ContentSelectionContext[] array,
int index
)
public:
void CopyTo(
array<ContentSelectionContext^>^ array,
int index
)
public function CopyTo(
array : ContentSelectionContext[],
index : int
)
Parameters
- array
Type: array<Microsoft.CommerceServer.Runtime.Targeting..::.ContentSelectionContext>[]()[]
The one-dimensional Array that is the destination of the elements copied from the current instance. The Array must have zero-based indexing and one-dimensional.
- index
Type: System..::.Int32
The zero-based index in the destination array at which storing begins.
Remarks
The ContentSelectionContext elements are copied to the target array, starting at the specified index of the target array.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ContentSelectionContextCollection Class