XdsObjects Help file
XdsObjects Namespace / XdsRegistryResponse Class / AddError Method / AddError(Exception,XdsErrorCode,String) Method
The Exception to obtain error information from
The XDS specific error code to use.
The Location value - in XDS-I use, this should be the instance UID



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

    Parameters

    Exception
    The Exception to obtain error information from
    ErrorCode
    The XDS specific error code to use.
    Location
    The Location value - in XDS-I use, this should be the instance UID
    Remarks

    This override is explicitly intended for use with XDS-I, where the "Location" should be the instance UID of the affected image.

    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