Metoda DefaultEvents.OnWarning
To zdarzenie jest wywoływane anytime zadanie jest w stanie nie uzasadnia błąd, ale wymagają ostrzegająca klient.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Runtime
Zestaw: Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)
Składnia
'Deklaracja
Public Overridable Sub OnWarning ( _
source As DtsObject, _
warningCode As Integer, _
subComponent As String, _
description As String, _
helpFile As String, _
helpContext As Integer, _
idofInterfaceWithError As String _
)
'Użycie
Dim instance As DefaultEvents
Dim source As DtsObject
Dim warningCode As Integer
Dim subComponent As String
Dim description As String
Dim helpFile As String
Dim helpContext As Integer
Dim idofInterfaceWithError As String
instance.OnWarning(source, warningCode, _
subComponent, description, helpFile, _
helpContext, idofInterfaceWithError)
public virtual void OnWarning(
DtsObject source,
int warningCode,
string subComponent,
string description,
string helpFile,
int helpContext,
string idofInterfaceWithError
)
public:
virtual void OnWarning(
DtsObject^ source,
int warningCode,
String^ subComponent,
String^ description,
String^ helpFile,
int helpContext,
String^ idofInterfaceWithError
)
abstract OnWarning :
source:DtsObject *
warningCode:int *
subComponent:string *
description:string *
helpFile:string *
helpContext:int *
idofInterfaceWithError:string -> unit
override OnWarning :
source:DtsObject *
warningCode:int *
subComponent:string *
description:string *
helpFile:string *
helpContext:int *
idofInterfaceWithError:string -> unit
public function OnWarning(
source : DtsObject,
warningCode : int,
subComponent : String,
description : String,
helpFile : String,
helpContext : int,
idofInterfaceWithError : String
)
Parametry
- source
Typ: Microsoft.SqlServer.Dts.Runtime.DtsObject
Obiekt, który spowodował zdarzenie.
- warningCode
Typ: System.Int32
Liczba całkowita, która identyfikuje komunikat ostrzegawczy.Identyfikator ten powinien być unikatowy w połączeniu z source parametru, tak source i warningCode kombinacji powinien być unikatowy.Jednakże warningCode samodzielnie nie powinien być unikatowy.
- subComponent
Typ: System.String
Dowolny ciąg identyfikujący podmodułów wewnątrz źródło.Na przykład przekształcanie w zadaniu rurociągu.
- description
Typ: System.String
Tekst wiadomości.
- helpFile
Typ: System.String
Ścieżka do pliku pomocy, który zawiera szczegółowe informacje.
- helpContext
Typ: System.Int32
Identyfikator tematu w pliku pomocy.
- idofInterfaceWithError
Typ: System.String
Tekstowa reprezentacja identyfikatora GUID interfejs, który spowodował błąd.
Implementacje
IDTSEvents.OnWarning(DtsObject, Int32, String, String, String, Int32, String)