RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSimpleObjectBroker.ServerData Property

Encapsulates the list of servers as an OleVariant.

Pascal
property ServerData: OleVariant;
C++
__property OleVariant ServerData;

Reading ServerData returns the value of the Servers property stored in the internal component format. Writing ServerData sets the value of the Servers property from an OleVariant that was saved previously. 

Use the ServerData property to provide a mechanism for loading and saving the list of servers represented by the Servers property. For example, An application can write the value of ServerData to an .ini file or the system registry. Later, it can read the value it saved as an OleVariant, and set ServerData to restore the Servers property to the value that was saved.

Note: The implementation of ServerData uses the SaveToStream method to encode the Servers property as an OleVariant and the LoadFromStream method to decode that OleVariant and restore the Servers property.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!