Share via


IDTSComponentPersist.SaveToXML(XmlDocument, IDTSInfoEvents) Method

Definition

Saves a component to XML. Tasks and containers implement this method.

public:
 void SaveToXML(System::Xml::XmlDocument ^ doc, Microsoft::SqlServer::Dts::Runtime::IDTSInfoEvents ^ infoEvents);
public void SaveToXML (System.Xml.XmlDocument doc, Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents infoEvents);
abstract member SaveToXML : System.Xml.XmlDocument * Microsoft.SqlServer.Dts.Runtime.IDTSInfoEvents -> unit
Public Sub SaveToXML (doc As XmlDocument, infoEvents As IDTSInfoEvents)

Parameters

doc
XmlDocument

The XML document to which to save the information.

infoEvents
IDTSInfoEvents

An object that implements the IDTSInfoEvents interface for raising events (errors, warnings, and so on) during persistence.

Remarks

This method is available because you inherit this interface and override this method when you are creating custom objects. This method is intended for inheritance only and should not be called from code for other purposes. If you want to save a package, use one of the following methods:

If you are creating a custom object and need information about how to write your own method for saving data, see Extending Packages with Custom Objects.

Applies to