Chili.Opf3 Send comments on this topic.
Load Method
See Also 
Chili.Opf3 Namespace > Generic ObjectSet Class : Load Method




context
ObjectContext that called this routine.
query
IQuery that is executed by the context to load the objects.
amount
Specifies the maximum amount of objects that have to be loaded from the storage. If the value is -1 all objects should be loaded from the storage that are returned by the query.
This method is called during load from the storage by the ObjectContext class.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub Load( _
   ByVal context As ObjectContext, _
   ByVal query As IQuery, _
   ByVal amount As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As ObjectSet(Of T)
Dim context As ObjectContext
Dim query As IQuery
Dim amount As Integer
 
instance.Load(context, query, amount)
C# 
protected virtual void Load( 
   ObjectContext context,
   IQuery query,
   int amount
)
Managed Extensions for C++ 
protected: virtual void Load( 
   ObjectContext* context,
   IQuery* query,
   int amount
) 
C++/CLI 
protected:
virtual void Load( 
   ObjectContext^ context,
   IQuery^ query,
   int amount
) 

Parameters

context
ObjectContext that called this routine.
query
IQuery that is executed by the context to load the objects.
amount
Specifies the maximum amount of objects that have to be loaded from the storage. If the value is -1 all objects should be loaded from the storage that are returned by the query.

Requirements

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

See Also