Share via


Service.Type Property

Gets the type of service, such as Microsoft Search service, SQL Server Agent service, or SQL Server service.

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

Syntax

'Declaration
Public ReadOnly Property Type As ManagedServiceType 
    Get
'Usage
Dim instance As Service 
Dim value As ManagedServiceType 

value = instance.Type
public ManagedServiceType Type { get; }
public:
property ManagedServiceType Type {
    ManagedServiceType get ();
}
member Type : ManagedServiceType
function get Type () : ManagedServiceType

Property Value

Type: ManagedServiceType
A ManagedServiceType object that specifies the type of SQL Server service.

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

Service Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine