SmoApplication 類別
The SmoApplication class represents an SMO application with respect to event management.
繼承階層
System.Object
Microsoft.SqlServer.Management.Smo.SmoApplication
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Class SmoApplication
'用途
Dim instance As SmoApplication
public class SmoApplication
public ref class SmoApplication
type SmoApplication = class end
public class SmoApplication
SmoApplication 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
SmoApplication | Initializes a new instance of the SmoApplication class. |
上層
方法
名稱 | 說明 | |
---|---|---|
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 | (繼承自 Object。) | |
Finalize | (繼承自 Object。) | |
GetHashCode | (繼承自 Object。) | |
GetType | (繼承自 Object。) | |
MemberwiseClone | (繼承自 Object。) | |
ToString | (繼承自 Object。) |
上層
備註
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.
範例
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。