Chili.Opf3 Send comments on this topic.
ExecuteCommand Method
See Also 
Chili.Opf3.Storages.OleDb Namespace > AccessStorage Class : ExecuteCommand Method




query
IQuery that is compiled and executed on the storage.
Executes a command on the storage that does not expect any results. It the method returns an argument it is used by the framework to set the AutoNumber property of the persistent object.

Syntax

Visual Basic (Declaration) 
Overrides Public Function ExecuteCommand( _
   ByVal query As IQuery _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As AccessStorage
Dim query As IQuery
Dim value As Object
 
value = instance.ExecuteCommand(query)
C# 
public override object ExecuteCommand( 
   IQuery query
)
Managed Extensions for C++ 
public: Object* ExecuteCommand( 
   IQuery* query
) override 
C++/CLI 
public:
Object^ ExecuteCommand( 
   IQuery^ query
) override 

Parameters

query
IQuery that is compiled and executed on the storage.

Exceptions

ExceptionDescription
StorageConstraintExceptionA constraint of the storage has been violated.
ForeignKeyViolationExceptionA foreign key in the storage has been violated.
PrimaryKeyViolationExceptionA duplicate primary key is inserted in the storage.
PrimaryKeyViolationExceptionAn index has been violated.
StorageExceptionAny other unexpected storage exception.
ArgumentNullExceptionQuery is null.

Requirements

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

See Also