Chili.Opf3 Send comments on this topic.
ConcurrencyData Property
See Also  Example
Chili.Opf3 Namespace > ObjectInfo Class : ConcurrencyData Property




Contains the data for/of the IConcurrencyManager. It is not required to change this property from your application. Changing this property is only required from any kind of IConcurrencyManager.

Syntax

Visual Basic (Declaration) 
Public Property ConcurrencyData As ICloneable
Visual Basic (Usage)Copy Code
Dim instance As ObjectInfo
Dim value As ICloneable
 
instance.ConcurrencyData = value
 
value = instance.ConcurrencyData
C# 
public ICloneable ConcurrencyData {get; set;}
Managed Extensions for C++ 
public: __property ICloneable* get_ConcurrencyData();
public: __property void set_ConcurrencyData( 
   ICloneable* value
);
C++/CLI 
public:
property ICloneable^ ConcurrencyData {
   ICloneable^ get();
   void set (ICloneable^ value);
}

Return Value

Returns the concurrency information for the IConcurrencyManager.

Example

The following example shows how to set the concurrency data, usually implemented in a IConcurrencyManager .
C#Copy Code
// Sets the concurrency data. 
private void SetConcurrencyData<T>(T obj, ConcurrencyManagerEventArgs e) 

    // Calculates the MD5 representation of the object. 
    MD5 md5 = CalculateMd5(obj); 
  
    // Create the ConcurrencyData object. 
    Md5ConcurrencyData concurrencyData = new Md5ConcurrencyData(); 
    concurrencyData.Md5 = md5; 
  
    // Attachs it to the ObjectInfo object. 
    e.ObjectInfo.ConcurrencyData = concurrencyData; 

    

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also