Export (0) Print
Expand All

IDTSComponentEvents.FireError Method

Raises an event when an error occurs.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

'Declaration
Function FireError ( _
	errorCode As Integer, _
	subComponent As String, _
	description As String, _
	helpFile As String, _
	helpContext As Integer _
) As Boolean
'Usage
Dim instance As IDTSComponentEvents 
Dim errorCode As Integer 
Dim subComponent As String 
Dim description As String 
Dim helpFile As String 
Dim helpContext As Integer 
Dim returnValue As Boolean 

returnValue = instance.FireError(errorCode, _
	subComponent, description, helpFile, _
	helpContext)

Parameters

errorCode
Type: Int32
An Integer that identifies the error message.
subComponent
Type: String
A String that contains more detail about the event source.
description
Type: String
The text of the message.
helpFile
Type: String
The path to the Help file that contains detailed information.
helpContext
Type: Int32
The identifier of the topic in the Help file.

Return Value

Type: Boolean
A Boolean that indicates whether the event should continue firing or stop firing. A value of true indicates that the event should continue firing.

Several of the events have a subComponent parameter that allows for even greater granularity in event source identification.

Community Additions

ADD
Show:
© 2015 Microsoft