Udostępnij przez


Metoda IDTSComponentEvents.FireWarning

Wywołuje zdarzenie 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
Sub FireWarning ( _
    warningCode As Integer, _
    subComponent As String, _
    description As String, _
    helpFile As String, _
    helpContext As Integer _
)
'Użycie
Dim instance As IDTSComponentEvents
Dim warningCode As Integer
Dim subComponent As String
Dim description As String
Dim helpFile As String
Dim helpContext As Integer

instance.FireWarning(warningCode, subComponent, _
    description, helpFile, helpContext)
void FireWarning(
    int warningCode,
    string subComponent,
    string description,
    string helpFile,
    int helpContext
)
void FireWarning(
    int warningCode, 
    String^ subComponent, 
    String^ description, 
    String^ helpFile, 
    int helpContext
)
abstract FireWarning : 
        warningCode:int * 
        subComponent:string * 
        description:string * 
        helpFile:string * 
        helpContext:int -> unit 
function FireWarning(
    warningCode : int, 
    subComponent : String, 
    description : String, 
    helpFile : String, 
    helpContext : int
)

Parametry

  • warningCode
    Typ: System.Int32
    Całkowitą identyfikująca komunikat ostrzegawczy.
  • subComponent
    Typ: System.String
    A ciąg zawiera więcej szczegółów o źródło zdarzenia.
  • helpFile
    Typ: System.String
    Ścieżka do pliku pomocy, który zawiera szczegółowe informacje.
  • helpContext
    Typ: System.Int32
    Identyfikator tematu w pliku pomocy.

Uwagi

Ponieważ wypalania zdarzenie może być kosztowne, uruchom -czas silnika udostępnia mechanizm pomijanie zdarzenia, które nie są zainteresowani.Każde zdarzenie wyzwalania metoda ma FireAgain parametru.Jeśli wartość tej zmiennej jest false, po metoda zwraca, obiekt wywołujący nie zostanie wyzwolony to zdarzenie ponownie w czasie trwania bieżącego wykonywania.

Niektóre zdarzenie mają subComponent parametr, który umożliwia jeszcze większą ziarnistość w identyfikacji źródło zdarzenia.