IDTSEvents100.OnWarning(IDTSRuntimeObject100, Int32, String, String, String, Int32, String) IDTSEvents100.OnWarning(IDTSRuntimeObject100, Int32, String, String, String, Int32, String) IDTSEvents100.OnWarning(IDTSRuntimeObject100, Int32, String, String, String, Int32, String) 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);
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 IDTSRuntimeObject100 IDTSRuntimeObject100

The object that caused the event.

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

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

Description
String String String

Text of the message.

HelpFile
String String String

The path to the Help file that contains detailed information.

HelpContext
Int32 Int32 Int32

Identifier of the topic in the Help file.

IDOfInterfaceWithError
String String String

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

Remarks

For more information, see IDTSEvents.

Applies to