Chili.Opf3 Send comments on this topic.
IObjectNotification Interface
See Also  Members   Example
Chili.Opf3 Namespace : IObjectNotification Interface




This interface is implemented by classes that need information on each change of their state.

Syntax

Visual Basic (Declaration) 
Public Interface IObjectNotification 
Visual Basic (Usage)Copy Code
Dim instance As 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

Classes that need information about any change on their state have to implement this interface to get notified if their state changes. If the framework encounters a class implementing the interface the appropriate method is called while the state changes.

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