共用方式為


Services 屬性

表示 Service 物件的集合。每個 Service 物件都代表 WMI 安裝上定義的一項 SQL Server 服務。

命名空間:  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
ServiceCollection 物件,代表 WMI 安裝上定義的所有 SQL Server 服務。