ThrowExceptionWhenCodeTextIncorrect

BarcodeParameters.ThrowExceptionWhenCodeTextIncorrect property

仅适用于一维条码。 如果代码文本不正确且值设置为 true - 将引发异常。否则 codetext 将被更正以匹配条形码的规范。 如果 codetext 不正确,则始终会引发异常。 .

public bool ThrowExceptionWhenCodeTextIncorrect { get; set; }

也可以看看