Public Class SmoApplication
public class SmoApplication
public ref class SmoApplication
The SmoApplication object can be used to enumerate all the instances of SQL Server that are available to the application.
Events reside on the SmoApplication object.
Handling SMO Events