PersistPropertyBag Object

DTS Programming

DTS Programming

PersistPropertyBag Object

The PersistPropertyBag object defines a persistent property storage interface for an object implementing a Data Transformation Services (DTS) custom task. The PropertyBag object is a name-indexed container object for object properties. When implemented, the PropertyBag and PersistPropertyBag objects allow simple object property handling.

Methods
Load Method Save Method
Remarks

DTS provides these options for custom task object property storage. You can:

  • Do nothing. DTS will save and load properties when Package object store and retrieve methods are called. The object can, optionally, implement a PropertiesProvider object to expose its properties as a DTS Properties collection.

  • Implement a PersistPropertyBag object.

  • If using Microsoft® Visual C++®, implement the IPersistStorage interface on the custom task object.

If implemented, DTS will call the PersistPropertyBag object Load method when a Package retrieving method is called. The Save method is called when a Package method storing a package is called.

See Also

PropertyBag Object