Поделиться через


Метод IDTSEvents100.OnWarning

Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.

Called any time the task is in a state that does not justify an error, but does warrant alerting the client.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Сборка:  Microsoft.SqlServer.DTSRuntimeWrap (в Microsoft.SqlServer.DTSRuntimeWrap.dll)

Синтаксис

'Декларация
Sub OnWarning ( _
    pSource As IDTSRuntimeObject100, _
    WarningCode As Integer, _
    SubComponent As String, _
    Description As String, _
    HelpFile As String, _
    HelpContext As Integer, _
    IDOfInterfaceWithError As String _
)
'Применение
Dim instance As IDTSEvents100 
Dim pSource As IDTSRuntimeObject100 
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(pSource, WarningCode, _
    SubComponent, Description, HelpFile, _
    HelpContext, IDOfInterfaceWithError)
void OnWarning(
    IDTSRuntimeObject100 pSource,
    int WarningCode,
    string SubComponent,
    string Description,
    string HelpFile,
    int HelpContext,
    string IDOfInterfaceWithError
)
void OnWarning(
    [InAttribute] IDTSRuntimeObject100^ pSource, 
    [InAttribute] int WarningCode, 
    [InAttribute] String^ SubComponent, 
    [InAttribute] String^ Description, 
    [InAttribute] String^ HelpFile, 
    [InAttribute] int HelpContext, 
    [InAttribute] String^ IDOfInterfaceWithError
)
abstract OnWarning : 
        pSource:IDTSRuntimeObject100 * 
        WarningCode:int * 
        SubComponent:string * 
        Description:string * 
        HelpFile:string * 
        HelpContext:int * 
        IDOfInterfaceWithError:string -> unit
function OnWarning(
    pSource : IDTSRuntimeObject100, 
    WarningCode : int, 
    SubComponent : String, 
    Description : String, 
    HelpFile : String, 
    HelpContext : int, 
    IDOfInterfaceWithError : String
)

Параметры

  • WarningCode
    Тип: System.Int32
    An Integer that identifies the warning message. This identifier should be unique when combined with the source parameter, so the source and warningCode combination should be unique. However, the warningCode alone is not expected to be unique.
  • SubComponent
    Тип: System.String
    An arbitrary string that identifies the sub-module within a source. For example, the transform in a Pipeline task.
  • HelpFile
    Тип: System.String
    The path to the Help file that contains detailed information.
  • HelpContext
    Тип: System.Int32
    Identifier of the topic in the Help file.
  • IDOfInterfaceWithError
    Тип: System.String
    A textual representation of the GUID of the interface that caused the error.

Замечания

For more information, see IDTSEvents.

См. также

Справочник

IDTSEvents100 Интерфейс

Пространство имен Microsoft.SqlServer.Dts.Runtime.Wrapper