XdsObjects Help file
XdsObjects Namespace / XdsRegistryResponse Class / AddError Method / AddError(XdsErrorCode,String,String) Method
The XDS specific error code to use.
The CodeContext for the new error
The Location for the new error



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

    Parameters

    ErrorCode
    The XDS specific error code to use.
    CodeContext
    The CodeContext for the new error
    Location
    The Location for the new error
    Remarks
    A new XdsError is created, using the provided values, and is added into the Errors collection. The Status value is unchanged.
    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