XdsObjects Help file
XdsObjects Namespace / XdsRegistryResponse Class / AddError Method / AddError(Exception,XdsErrorCode) Method
The Exception to obtain error information from
The XDS specific error code to use.



In This Topic
    AddError(Exception,XdsErrorCode) Method
    In This Topic
    Add a new XdsError to the Errors collection, given a System.Exception and XdsObjects.Enums.XdsErrorCode
    Syntax
    Public Overloads Sub AddError( _
       ByVal Exception As Exception, _
       ByVal ErrorCode As XdsErrorCode _
    ) 
    Dim instance As XdsRegistryResponse
    Dim Exception As Exception
    Dim ErrorCode As XdsErrorCode
     
    instance.AddError(Exception, ErrorCode)
    public void AddError( 
       Exception Exception,
       XdsErrorCode ErrorCode
    )
    public:
    void AddError( 
       Exception^ Exception,
       XdsErrorCode ErrorCode
    ) 

    Parameters

    Exception
    The Exception to obtain error information from
    ErrorCode
    The XDS specific error code to use.
    Remarks

    A new XdsError is created, using the provided values, and is added into the Errors collection. The Status value is unchanged.

    See XdsErrorItem.XdsErrorItem Constructor(Exception,XdsErrorCode) for more details of how the Exception is used to populate the XdsErrorItem

    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