'Declaration Public MustOverride Sub Write()
'Usage Dim instance As FormDefinition instance.Write()
public abstract void Write()
public: abstract void Write();
public: abstract void Write();
'Declaration Public MustOverride Sub Write()
'Usage Dim instance As FormDefinition instance.Write()
public abstract void Write()
public: abstract void Write();
public: abstract void Write();
This method writes the Name, Fields, TemplateImages, Operations, and OtherDataItems properties to a form definition file or some other form of persistent storage. When it is complete, it sets the HasChanged property to false. The implementation of this method resides in the FormDefinitionFile class or in a class that you derive from FormDefinition.
If you derive a new class from FormDefinition, you must override this method with code that saves the Name, Fields, TemplateImages, Operations, and OtherDataItems properties, then sets the HasChanged property to false. Unless it is inconvenient, you should require the form definition file to be locked to call this method.
If you are storing your form definitions in a database, it may be inconvenient to hold a database lock for the amount of time that a form is often locked. In that case, you may resort to optimistic locking and detect changes made by another user as you write the form to the database.