BarCode for WPF | ComponentOne
C1.WPF.BarCode Assembly / C1.WPF.BarCode Namespace / C1BarCode Class / EncodingException Property

In This Topic
    EncodingException Property (C1BarCode)
    In This Topic
    Gets the C1.BarCode.BarCodeException that prevented the C1BarCode.Text from being encoded.
    Syntax
    'Declaration
     
    Public ReadOnly Property EncodingException As BarCodeException
    public BarCodeException EncodingException {get;}
    Remarks

    Most encodings have limitations that determine what type of text it can represent. For example, some are numeric-only and some require text of a specific length.

    If the value of the C1BarCode.Text property cannot be represented using the current C1BarCode.CodeType, then the error message will be shown in the control.

    In this case, the EncodingException property returns details about the exception that prevented the bar code from being generated.

    See Also