T
Chili.Opf3 Send comments on this topic.
Generic ExecuteReader Method
See Also 
Chili.Opf3.Storages Namespace > StorageBase Class : Generic ExecuteReader Method




context
ObjectContext connected with the ObjectReader.
query
IQuery that is compiled and executed on the storage.
Executes the IQuery and returns an ObjectReader with the results of the query.

Syntax

Visual Basic (Declaration) 
Public Overridable MustOverride Function ExecuteReader(Of T)( _
   ByVal context As ObjectContext, _
   ByVal query As IQuery _
) As ObjectReader(Of T)
Visual Basic (Usage)Copy Code
Dim instance As StorageBase
Dim context As ObjectContext
Dim query As IQuery
Dim value As ObjectReader(Of T)
 
value = instance.ExecuteReader(Of T)(context, query)
C# 
public virtual abstract ObjectReader<T> ExecuteReader<T>( 
   ObjectContext context,
   IQuery query
)
Managed Extensions for C++ 
public: virtual abstract ObjectReader<T>* ExecuteReader<T>( 
   ObjectContext* context,
   IQuery* query
) 
C++/CLI 
public:
virtual abstract ObjectReader<T>^ ExecuteReadergeneric<typename T>
( 
   ObjectContext^ context,
   IQuery^ query
) 

Parameters

context
ObjectContext connected with the ObjectReader.
query
IQuery that is compiled and executed on the storage.

Type Parameters

T

Exceptions

ExceptionDescription
ArgumentNullExceptionQuery is null or context is null.

Requirements

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

See Also