Share via


IDTSEvents100.OnWarning Method

Definition

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

public:
 void OnWarning(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100 ^ pSource, int WarningCode, System::String ^ SubComponent, System::String ^ Description, System::String ^ HelpFile, int HelpContext, System::String ^ IDOfInterfaceWithError);
[System.Runtime.InteropServices.DispId(4)]
public void OnWarning (Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 pSource, int WarningCode, string SubComponent, string Description, string HelpFile, int HelpContext, string IDOfInterfaceWithError);
[<System.Runtime.InteropServices.DispId(4)>]
abstract member OnWarning : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 * int * string * string * string * int * string -> unit
Public Sub OnWarning (pSource As IDTSRuntimeObject100, WarningCode As Integer, SubComponent As String, Description As String, HelpFile As String, HelpContext As Integer, IDOfInterfaceWithError As String)

Parameters

pSource
IDTSRuntimeObject100

The object that caused the event.

WarningCode
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
String

An arbitrary string that identifies the sub-module within a source. For example, the transform in a Pipeline task.

Description
String

Text of the message.

HelpFile
String

The path to the Help file that contains detailed information.

HelpContext
Int32

Identifier of the topic in the Help file.

IDOfInterfaceWithError
String

A textual representation of the GUID of the interface that caused the error.

Attributes

Remarks

For more information, see IDTSEvents.

Applies to