Following is based on the ReadDigChan_ChangeDetection_Events VB.NET example (with hard-coded channel strings)...
myTask = New Task()
myTask.DIChannels.CreateChannel("Dev1/Port1/Line0", "myChannel", ChannelLineGrouping.OneChannelForAllLines)
myTask.Timing.ConfigureChangeDetection("Dev1/Port1/Line0", "Dev1/Port1/Line0", SampleQuantityMode.ContinuousSamples, 1000)
...but ConfigureChangeDetection throws an exception:
Requested value is not a supported value for this property.
Property: NationalInstruments.DAQmx.Timing.SampleTimingType
You Have Requested: NationalInstruments.DAQmx.SampleTimingType.ChangeDetection
You Can Select: NationalInstruments.DAQmx.SampleTimingType.OnDemand
Task Name: _unnamedTask<0>
Status Code: -200077" String