Adds a document to the index
Declaration Syntax
C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("By default AddDocument(Document) is now the same as calling AddDocument(Document, true, true) - use that signature instead.", true)] public virtual void AddDocument( Document document, bool indexNow, bool markIndexValid )
<ObsoleteAttribute("By default AddDocument(Document) is now the same as calling AddDocument(Document, true, true) - use that signature instead.", _ True)> _ Public Overridable Sub AddDocument ( _ document As Document, _ indexNow As Boolean, _ markIndexValid As Boolean _ )
[ObsoleteAttribute(L"By default AddDocument(Document) is now the same as calling AddDocument(Document, true, true) - use that signature instead.", true)] public: virtual void AddDocument( Document^ document, bool indexNow, bool markIndexValid )
Parameters
- document (Document)
- The document to add
- indexNow (Boolean)
- Whether to index the document immediately so that it can be searched. Incurs performance penalty.
- markIndexValid (Boolean)
- Whether indexing the document should leave the index searchable or not.