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 | |
---|---|---|
SmoApplication | Initializes a new instance of the SmoApplication class. |
Top
Methods
Name | Description | |
---|---|---|
EnumAvailableSqlServers() | Enumerates a list of available instances of SQL Server. | |
EnumAvailableSqlServers(Boolean) | Enumerates a list of local available instances of SQL Server. | |
EnumAvailableSqlServers(String) | Enumerates a list of available instances of SQL Server that are installed on the computer with the specified instance name. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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.