Udostępnij przez


Metoda DefaultEvents.OnInformation

To zdarzenie jest wywoływane przy każdym zadaniem jest dostarczenie informacji.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime
Zestaw:  Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)

Składnia

'Deklaracja
Public Overridable Sub OnInformation ( _
    source As DtsObject, _
    informationCode As Integer, _
    subComponent As String, _
    description As String, _
    helpFile As String, _
    helpContext As Integer, _
    idofInterfaceWithError As String, _
    ByRef fireAgain As Boolean _
)
'Użycie
Dim instance As DefaultEvents
Dim source As DtsObject
Dim informationCode As Integer
Dim subComponent As String
Dim description As String
Dim helpFile As String
Dim helpContext As Integer
Dim idofInterfaceWithError As String
Dim fireAgain As Boolean

instance.OnInformation(source, informationCode, _
    subComponent, description, helpFile, _
    helpContext, idofInterfaceWithError, _
    fireAgain)
public virtual void OnInformation(
    DtsObject source,
    int informationCode,
    string subComponent,
    string description,
    string helpFile,
    int helpContext,
    string idofInterfaceWithError,
    ref bool fireAgain
)
public:
virtual void OnInformation(
    DtsObject^ source, 
    int informationCode, 
    String^ subComponent, 
    String^ description, 
    String^ helpFile, 
    int helpContext, 
    String^ idofInterfaceWithError, 
    bool% fireAgain
)
abstract OnInformation : 
        source:DtsObject * 
        informationCode:int * 
        subComponent:string * 
        description:string * 
        helpFile:string * 
        helpContext:int * 
        idofInterfaceWithError:string * 
        fireAgain:bool byref -> unit 
override OnInformation : 
        source:DtsObject * 
        informationCode:int * 
        subComponent:string * 
        description:string * 
        helpFile:string * 
        helpContext:int * 
        idofInterfaceWithError:string * 
        fireAgain:bool byref -> unit 
public function OnInformation(
    source : DtsObject, 
    informationCode : int, 
    subComponent : String, 
    description : String, 
    helpFile : String, 
    helpContext : int, 
    idofInterfaceWithError : String, 
    fireAgain : boolean
)

Parametry

  • informationCode
    Typ: System.Int32
    Liczba całkowita, która identyfikuje wiadomość.Identyfikator ten powinien być unikatowy w połączeniu z source parametru, tak source i informationCode kombinacji powinien być unikatowy.Jednakże informationCode 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.
  • 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.
  • fireAgain
    Typ: System.Boolean%
    A wartość logiczna wskazuje, że jeśli klient chce, aby ten komunikat.Klient musi zestaw to true Jeśli chcą odebrać to zdarzenie w przyszłości.

Implementacje

IDTSEvents.OnInformation(DtsObject, Int32, String, String, String, Int32, String, Boolean%)

Uwagi

W porównaniu do ostrzeżenie, zdarzenie informacyjne komunikuje się ważne informacje, które nie musi koniecznie wyznaczają utraty danych lub inne podstawy do niepokoju.Jednakże ważne jest wystarczająco więcej niż wpis dziennika uzasadnia.