共用方式為


IDTSInfoEvents100.FireWarning 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Fires a warning.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Sub FireWarning ( _
    WarningCode As Integer, _
    SubComponent As String, _
    Description As String, _
    HelpFile As String, _
    HelpContext As Integer _
)
'用途
Dim instance As IDTSInfoEvents100 
Dim WarningCode As Integer 
Dim SubComponent As String 
Dim Description As String 
Dim HelpFile As String 
Dim HelpContext As Integer

instance(WarningCode, SubComponent, Description, _
    HelpFile, HelpContext)
void FireWarning(
    int WarningCode,
    string SubComponent,
    string Description,
    string HelpFile,
    int HelpContext
)
void FireWarning(
    [InAttribute] int WarningCode, 
    [InAttribute] String^ SubComponent, 
    [InAttribute] String^ Description, 
    [InAttribute] String^ HelpFile, 
    [InAttribute] 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
)

參數

  • WarningCode
    型別:System.Int32
    An Integer that identifies the warning message.
  • 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.

請參閱

參考

IDTSInfoEvents100 介面

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間