| Visual Basic (Declaration) | |
|---|---|
Public Property ConcurrencyManager As IConcurrencyManager | |
| Visual Basic (Usage) | |
|---|---|
| |
| C# | |
|---|---|
public IConcurrencyManager ConcurrencyManager {get; set;} | |
| Managed Extensions for C++ | |
|---|---|
public: __property IConcurrencyManager* get_ConcurrencyManager(); public: __property void set_ConcurrencyManager( IConcurrencyManager* value ); | |
| C++/CLI | |
|---|---|
public: property IConcurrencyManager^ ConcurrencyManager { IConcurrencyManager^ get(); void set (IConcurrencyManager^ value); } | |
Return Value
Returns the IConcurrencyManager of the ObjectContext or null if no manager has been specified.The following example shows how to set the Md5ConcurrencyManager.
| C# | |
|---|---|
// Creates a new ObjectContext that uses an MsSql Server as storage. | |
The IConcurrencyManager
checks if somebody else has changed the object in the meantime (in the time it has been
in memory). It throws a
ConcurrencyException if
somebody else altered the object in the meantime. If the program using the framework is
not the only one working on a storage it is always required to set a
IConcurrencyManager.
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family