XdsObjects Help file
XdsObjects Namespace / XdsGlobal Class / TreatErrorsAsExceptions Property



In This Topic
    TreatErrorsAsExceptions Property (XdsGlobal)
    In This Topic
    Controls whether errors reported in incoming data cause an exception to be thrown
    Syntax
    Public Shared Property TreatErrorsAsExceptions As Boolean
    Dim value As Boolean
     
    XdsGlobal.TreatErrorsAsExceptions = value
     
    value = XdsGlobal.TreatErrorsAsExceptions
    public static bool TreatErrorsAsExceptions {get; set;}
    public:
    static property bool TreatErrorsAsExceptions {
       bool get();
       void set (    bool value);
    }
    Remarks
    By default, this value is true, so exceptions (as XdsError objects) will be thrown if errors are encountered. If set to false, then the error objects will still be created and return in the appropriate XdsRegistryResponse property, but will not be thrown.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also