/// <summary>Affect a trigger to this device.</summary> /// <param name="trig">A valid instance of the <see cref="iio.Trigger"/> class.</param> /// <exception cref="System.Exception">The trigger could not be set.</exception> public void set_trigger(Trigger trig) { int err = iio_device_set_trigger(this.dev, trig == null ? IntPtr.Zero : trig.dev); if (err < 0) throw new Exception("Unable to set trigger: err=" + err); }
public new void set_trigger(Trigger trig) { throw new InvalidComObjectException("Device is already a trigger"); }