Share via


SmoApplication Class

The SmoApplication class represents an SMO application with respect to event management.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.SmoApplication

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Class SmoApplication
'Usage
Dim instance As SmoApplication
public class SmoApplication
public ref class SmoApplication
type SmoApplication =  class end
public class SmoApplication

The SmoApplication type exposes the following members.

Constructors

  Name Description
Public method SmoApplication Initializes a new instance of the SmoApplication class.

Top

Methods

  Name Description
Public methodStatic member EnumAvailableSqlServers() Enumerates a list of available instances of SQL Server.
Public methodStatic member EnumAvailableSqlServers(Boolean) Enumerates a list of local available instances of SQL Server.
Public methodStatic member EnumAvailableSqlServers(String) Enumerates a list of available instances of SQL Server that are installed on the computer with the specified instance name.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.