This interface is implemented by classes that need information on each change of
their state.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Interface IObjectNotification |
| C# | |
|---|
public interface IObjectNotification |
| Managed Extensions for C++ | |
|---|
public __gc __interface IObjectNotification |
| C++/CLI | |
|---|
public interface class IObjectNotification |
Example
The following example shows how to implement the interface in your own persistent
classes.
| C# | Copy Code |
|---|
[Persistent("USER")] public class User : IObjectNotification { void IObjectNotifcation.OnBeforePopulated(ObjectNotificationEventArgs e) { // The method is called before the object is populated. // Any kind of checks could be done here, for example creating // a backup of the existing object. } // ... Other methods of the interface. // ... Other properties and code. } |
Remarks
Requirements
Namespace: Chili.Opf3
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Chili.Opf3 (in Chili.Opf3.dll)
See Also