propertybag

Converting VB6 PropertyBag in .NET

帅比萌擦擦* 提交于 2019-12-02 01:38:37
For certain file operations we use VB6's PropertyBag object to convert various items to a bytearray via the Content property. We then save the bytearray as part of a binary file. Later when we load the file we read back the file, read in the bytearray and reconstitute the item by using the propertybag's readproperty. We use this a lot to store images like the customer logo. What support does .NET framework have for working with PropertyBags? Othan than writing a COM helper DLL. Are Property Bags a VB6 only construct or they are part of the general OLE/COM automation framework? What I am hoping