Help > Web Development > Object Reference > Object Reference > ISYSIndexer > ExecMethod Method
<a name="kanchor437"></a>ISYSIndexer:ExecMethod Method
Execute an internal methods against the Indexer object.

Syntax
[VBScript]
function ISYSIndexer.ExecMethod(_
  Variant Params_ 
) as Variant
[C#]
Variant ISYSIndexer.ExecMethod(
  Variant Params
);
[ColdFusion/Java]
Variant IISYSIndexer.ExecMethod(
  Variant Params
) throws ComException;
Parameters
ParamsSpecifies the method and parameters to execute. Method name and parameters must be packed into the same array.
SetLogFileSpecifies the log file that output from the IDBFunctions should be sent to.

Examples
[VBScript]
<% ' This sample demonstrates executing and IDBFunction and sending it's output ' to a text file. ' Obtain a reference of the Indexer from an open index set Indexer = ISYSIndex.Indexer ' Instruct ISYS to send output to log file Indexer.ExecMethod Array("SetLogFile", "C:\ISYS.LOG") ' Gather the statistics about the index Indexer.IDBFunction "STATISTICS" %>
[C#]
// This sample demonstrates executing and IDBFunction and sending it's output // to a text file. // Obtain a reference of the Indexer from an open index Indexer = ISYSIndex.Indexer; // Instruct ISYS to send output to log file Indexer.ExecMethod( new object[] { "SetLogFile", "C:\\ISYS.LOG" } ); // Gather the statistics about the index Indexer.IDBFunction("STATISTICS");