.NET
  Home arrow .NET arrow Page 2 - Managing Windows Indexing Service with Vis...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Managing Windows Indexing Service with Visual Basic.NET Using COM
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2005-10-26

    Table of Contents:
  • Managing Windows Indexing Service with Visual Basic.NET Using COM
  • Getting “Indexing service” status information with COM and VB.NET
  • How to change the “start mode” of (or manage) indexing service
  • How to program the index catalogs

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Managing Windows Indexing Service with Visual Basic.NET Using COM - Getting “Indexing service” status information with COM and VB.NET


    (Page 2 of 4 )

    The downloadable solution contains a “WinForms” application, which interacts with “Indexing Service” using COM (interoperating with .NET).  It is important to note that, you need to add a reference to “Indexing Service Administration Type Library 1.0” (from COM tab) to your project, when you are working with Indexing Service using COM.  You should see a “dll” named “Interop.CIODMLib.dll” within your “bin” folder, which works like a “.NET wrapper,” which interoperates with “Indexing Service.”

    Let us go through a small code fragment, which I used to check the status of an “Indexing Service.”

    Dim obj As New CIODMLib.AdminIndexServerClass
     
        Private Sub btnStatus_Click(ByVal sender As System.Object,
    ByVal e As System.EventArgs) Handles btnStatus.Click
            MessageBox.Show("Machine? " & obj.MachineName)
            MessageBox.Show("Running? " & obj.IsRunning)
            MessageBox.Show("Paused? " & obj.IsPaused)
        End Sub

    The “AdminIndexServerClass” within the “CIODMLib” namespace is used to get the information about the status of Indexing Service.  In the above coding, I used “messageboxes” to make it simple.  You can use any “label” or “checkbox” or “radio buttons” for a better look and feel. 

    You can also observe that the above code is totally different from what I used with WMI (in my previous article).  I don’t think that I need to explain much about the above code anymore.  It is as simple as that.

    More .NET Articles
    More By Jagadish Chaterjee


       · Hello guys, now you can manage your indexing service right from VB.NET...have a...
     

    .NET ARTICLES

    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries
    - Introducing LINQ to SQL Designer using Visua...
    - Beginning LINQ to SQL Using Visual Studio 20...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway