Metoda IDTSComponentMetaData100.FireError
Podnosi OnError zdarzenie.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Pipeline.Wrapper
Zestaw: Microsoft.SqlServer.DTSPipelineWrap (w Microsoft.SqlServer.DTSPipelineWrap.dll)
Składnia
'Deklaracja
Sub FireError ( _
ErrorCode As Integer, _
SubComponent As String, _
Description As String, _
HelpFile As String, _
HelpContext As Integer, _
<OutAttribute> ByRef pbCancel As Boolean _
)
'Użycie
Dim instance As IDTSComponentMetaData100
Dim ErrorCode As Integer
Dim SubComponent As String
Dim Description As String
Dim HelpFile As String
Dim HelpContext As Integer
Dim pbCancel As Boolean
instance.FireError(ErrorCode, SubComponent, _
Description, HelpFile, HelpContext, _
pbCancel)
void FireError(
int ErrorCode,
string SubComponent,
string Description,
string HelpFile,
int HelpContext,
out bool pbCancel
)
void FireError(
[InAttribute] int ErrorCode,
[InAttribute] String^ SubComponent,
[InAttribute] String^ Description,
[InAttribute] String^ HelpFile,
[InAttribute] int HelpContext,
[OutAttribute] bool% pbCancel
)
abstract FireError :
ErrorCode:int *
SubComponent:string *
Description:string *
HelpFile:string *
HelpContext:int *
pbCancel:bool byref -> unit
function FireError(
ErrorCode : int,
SubComponent : String,
Description : String,
HelpFile : String,
HelpContext : int,
pbCancel : boolean
)
Parametry
- ErrorCode
Typ: System.Int32
Kod błędu określony składnik.
- SubComponent
Typ: System.String
Nazwa składnika, który wywołuje zdarzenie.
- Description
Typ: System.String
Opis błędu.
- HelpFile
Typ: System.String
Plik Pomocy zawiera więcej informacji na temat zdarzenie błędu.
- HelpContext
Typ: System.Int32
Identyfikator kontekstu błędu.
- pbCancel
Typ: System.Boolean%
Określa, czy wykonanie składnika jest anulowana.
Uwagi
OnErrorzdarzenie Może zostać podniesiony, podczas projektowania pakiet lub wykonanie. Podczas projektowania czas, błędy są wyświetlane w Listy zadań okna, a także przyczyny czerwony znak x ikona wyświetlana obok kształtu składnik na powierzchni projektanta.W czasie wykonywania zdarzenie błędu może spowodować wykonanie pakiet zakończyć.
Zobacz także