Defines the state of a persistent object in memory.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Enum ObjectStates
Inherits Enum |
| C# | |
|---|
public enum ObjectStates : Enum |
| Managed Extensions for C++ | |
|---|
__value public enum ObjectStates : public Enum |
| C++/CLI | |
|---|
public enum class ObjectStates : public Enum |
Members
Example
The following example shows how to request the
ObjectInfo instance of the
ISelfContainingObject to determine whether the object has been
loaded from the storage.
| C# | Copy Code |
|---|
[Persistent("USER")] public class User : ISelfContainingObject { // ... Other properties and fields. } // ... Other code // Loads a user object from the storage. User user = context.GetObject<User>("Id = {0}", "1"); // Checks if the object has been loaded. if (user.ObjectInfo.ObjectState == ObjectStates.Loaded) { Debug.WriteLine("Object has been loaded."); } |
Remarks
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
Chili.Opf3.ObjectStates
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