Using Visual Basic with Indexing Service APIs
Note
Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.
When you use Indexing Service APIs with Visual Basic, you can choose early binding or late binding of your application to the objects that implement the APIs. Early binding occurs at compile time and generally produces applications that execute faster. Early binding can also provide interactive development features such as object browsing and automatic class and member expansion. Late binding occurs at execution time and gives you greater flexibility in programmatically picking alternative object implementations when they are available. Late binding is also more closely compatible with the style of programming used with VBScript (see Using Indexing Service APIs from Scripts).
Either binding method uses the prog ID of the objects in the API, and early binding can use references to type libraries. This section discusses the following topics concerning the use of early and late binding.
- Using Prog IDs of Objects
- Using References to Type Libraries
- Creating Objects with Early and Late Binding