Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > Document Class : UserData Property |
public object UserData {get; set;}
'Declaration
Public Property UserData As Object
'Usage
Dim instance As Document Dim value As Object instance.UserData = value value = instance.UserData
public Object getUserData() public void setUserData(Object value)
UserData is not used by the Document, the user can set any application value to associated this document object with an external resource.
If this document uses the cache, then UserData will be saved and re-loaded from the cache as well. This is performed using the value set DataSerializationMode. So for primitives values, nothing more needs to be done. If UserData was set to a complex user-defined object, then the class must contain the necessary attributes or implement the necessary interfaces used with the current serialization mode. Refer to CacheSerializationMode for more information.