Help > Web Development > Object Reference > Object Reference > ISYSIndexer > AddDocumentEx Method
<a name="kanchor436"></a>ISYSIndexer:AddDocumentEx Method
Add the specified document to the index, specifying the name, size, date and format.

Syntax
[VBScript]
sub ISYSIndexer.AddDocumentEx(_
  string Filename, _ 
  date Timestamp, _ 
  long Size, _ 
  long Format_ 
)
[C#]
void IISYSIndexer.AddDocumentEx(
  string Filename, 
  System.DateTime Timestamp, 
  long Size, 
  long Format
);
[ColdFusion/Java]
void IISYSIndexer.AddDocumentEx(
  java.lang.String Filename, 
  java.util.Date Timestamp, 
  long Size, 
  long Format
) throws ComException;
Parameters
FilenameFile name of the document to add
TimestampThe time stamp of the file to add to the index
SizeThe size of the file to add to the index
FormatThe format of the file to add to the index

Examples
[VBScript]
<% set indexer = Application("ISYSIndex").Indexer ' Demonstrates adding a new SQL record with the PK of 1 indexer.AddDocumentEx("db: 1", Now, 0, 45) %>
See Also