共用方式為


ManagedComputer.Services 屬性

Represents a collection of Service objects. Each Service object represents a SQL Server service defined on the WMI installation.

命名空間:  Microsoft.SqlServer.Management.Smo.Wmi
組件:  Microsoft.SqlServer.SqlWmiManagement (在 Microsoft.SqlServer.SqlWmiManagement.dll 中)

語法

'宣告
Public ReadOnly Property Services As ServiceCollection 
    Get
'用途
Dim instance As ManagedComputer 
Dim value As ServiceCollection 

value = instance.Services
public ServiceCollection Services { get; }
public:
property ServiceCollection^ Services {
    ServiceCollection^ get ();
}
member Services : ServiceCollection
function get Services () : ServiceCollection

屬性值

型別:Microsoft.SqlServer.Management.Smo.Wmi.ServiceCollection
A ServiceCollection object that represents all the SQL Server services defined on the WMI installation.

範例

使用 WMI 提供者管理服務和網路設定

請參閱

參考

ManagedComputer 類別

Microsoft.SqlServer.Management.Smo.Wmi 命名空間

其他資源

連接到 SQL Server Database Engine