IDTSComponentPersist.LoadFromXML(XmlElement, IDTSInfoEvents) Method

Definition

从 XML 加载组件信息。Loads component information from XML.

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

Parameters

node
XmlElement

包含要加载的信息的节点。The node that contains the information to be loaded.

infoEvents
IDTSInfoEvents

一个对象,该对象实现在持久性期间中用于引发事件(错误、警告等)的 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. 如果要加载包,请使用以下方法之一:If you want to load a package, use one of the following methods:

如果要创建自定义对象,并需要有关如何编写您自己的方法的信息 LoadFromXML ,请参阅使用自定义对象扩展包If you are creating a custom object and need information about how to write your own LoadFromXML method, see Extending Packages with Custom Objects.

Applies to