IDTSEvents.OnWarning Metodo

Definizione

Chiamato quando l'attività è in uno stato che non giustifica un errore ma richiede l'invio di un avviso al client.

public:
 void OnWarning(Microsoft::SqlServer::Dts::Runtime::DtsObject ^ source, int warningCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext, System::String ^ idofInterfaceWithError);
public void OnWarning (Microsoft.SqlServer.Dts.Runtime.DtsObject source, int warningCode, string subComponent, string description, string helpFile, int helpContext, string idofInterfaceWithError);
abstract member OnWarning : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string -> unit
Public Sub OnWarning (source As DtsObject, warningCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer, idofInterfaceWithError As String)

Parametri

source
DtsObject

Oggetto che ha provocato l'evento.

warningCode
Int32

Integer che identifica il messaggio di avviso. Questo identificatore deve essere univoco se utilizzato in combinazione con il parametro source, pertanto la combinazione di source e warningCode deve essere univoca. Tuttavia, se utilizzato da solo, warningCode non deve essere univoco.

subComponent
String

Stringa arbitraria che identifica il sottomodulo all'interno di un'origine: ad esempio, la trasformazione in un'attività Pipeline.

description
String

Testo del messaggio.

helpFile
String

Percorso del file della Guida che contiene informazioni dettagliate.

helpContext
Int32

Identificatore dell'argomento nel file della Guida.

idofInterfaceWithError
String

Rappresentazione testuale del GUID dell'interfaccia che ha provocato l'errore.

Si applica a