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.