Inserts a DeviceToSynchronize object into the collection at the specified index.

Syntax

Namespace: NationalInstruments.ModularInstruments.SystemServices.TimingServices

public void Insert(int index, DeviceToSynchronize deviceToSynchronize)

Remarks

The list elements after the inserted element shift down in the list. Because the list elements are indexed, the indexes of the shifted elements also are updated.

Parameters

NameTypeDescription
indexint

Index at which to insert the item.

deviceToSynchronizeDeviceToSynchronize

DeviceToSynchronize object to insert into the collection.

Exceptions

TypeDescription
System.ArgumentNullException

deviceToSynchronize  is null.

System.ArgumentOutOfRangeException

index  is not a valid index.