A PropertyBag object holds information that is to be saved and restored across invocations of an object. Its up to you to write this binary stream to a file and retrieve it for later use. Say, we have a class called MyComp.clsMyDept. As Byte objBag. As Byte ' Read the saved data from the file.
Lets restore the properties now.
Dim objDept As New MyComp.clsMyDept objDept. Update ' Add second employee objDept. Update ' Save the properties by calling the method from our component objDept. Dim objDept As New MyComp.clsMyDept ' Restore properties by calling the method from our component objDept. RestoreMyProperties ' Lets see what is restored Debug.