Chili.Opf3 Send comments on this topic.
FindAll() Method
See Also  Example
Chili.Opf3 Namespace > Generic ObjectSearcher Class > FindAll Method : FindAll() Method




Returns an ObjectSet containing all persistent objects of the generic type that are found in the storage.

Syntax

Visual Basic (Declaration) 
Overloads Public Overridable Function FindAll() As ObjectSet(Of T)
Visual Basic (Usage)Copy Code
Dim instance As ObjectSearcher(Of T)
Dim value As ObjectSet(Of T)
 
value = instance.FindAll()
C# 
public virtual ObjectSet<T> FindAll()
Managed Extensions for C++ 
public: virtual ObjectSet<T>* FindAll(); 
C++/CLI 
public:
virtual ObjectSet<T>^ FindAll(); 

Example

The example shows how this method is used in your application code.
C#Copy Code
            [Persistent("USER")] 
public class User 

    private string _name = null; 
 
    [Field("NAME")] 
    public string Name 
    { 
        get { return _name; } 
        set { _name = value; } 
    } 
 
    // ... Other properties and fields. 

 
// ... Other code 
 
// Get the ObjectSearcher for User. 
ObjectSearcher<User> searcher = context.GetObjectSearcher<User>(); 
// Find all user in the storage. 
ObjectSet<User> objectSet = searcher.FindAll(); 
    

Requirements

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

See Also