Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method supports replication infrastructure and is not intended to be used directly from your code.
Syntax
collection.AddReplError Description, Source, ErrorNumber, _
ErrorSourceType, ErrorNumberString
Part | Description |
---|---|
collection |
Expression that evaluates to a SQLReplErrors Collection (Replication ActiveX) collection. |
Description |
String that describes the error. |
Source |
String that describes the component that generated the error. |
ErrorNumber |
Long integer code for the error. |
ErrorSourceType |
Value from the ERRORSOURCE_TYPE (Replication ActiveX) enumerating the type of error source. |
ErrorNumberString |
String representation of the error number. |
Applies To
SQLReplErrors Collection (Replication ActiveX)
Remarks
The AddReplError method adds an error to a SQLReplErrors Collection (Replication ActiveX) collection without the caller explicitly creating a SQLReplError Object (Replication ActiveX) object. The Add Method (Replication ActiveX) method can be used to add a SQLReplError Object (Replication ActiveX) object to a SQLReplErrors Collection (Replication ActiveX) collection.
Prototype (C/C++)
HRESULT AddReplError(
BSTR bstrDescription,
BSTR bstrSource,
long lErrorNumber,
ERRORSOURCE_TYPE ErrorSourceType,
BSTR bstrErrorNumberString);