Service Service Service Class

Definition

Instance class encapsulating : ManagedComputer[@Name='']/Service

public sealed class Service : Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject, Microsoft.SqlServer.Management.Common.IAlterable
type Service = class
    inherit WmiSmoObject
    interface IAlterable
Public NotInheritable Class Service
Inherits WmiSmoObject
Implements IAlterable
Inheritance
Implements

Properties

AcceptsPause AcceptsPause AcceptsPause
AcceptsStop AcceptsStop AcceptsStop
AdvancedProperties AdvancedProperties AdvancedProperties

This is a property bag that holds the Server and Client Protocol properties

Dependencies Dependencies Dependencies

This is a property bag that holds the Server and Client Protocol properties

Description Description Description
DisplayName DisplayName DisplayName
ErrorControl ErrorControl ErrorControl
ExitCode ExitCode ExitCode
IsHadrEnabled IsHadrEnabled IsHadrEnabled
Name Name Name Inherited from WmiSmoObject
Parent Parent Parent
PathName PathName PathName
ProcessId ProcessId ProcessId
Properties Properties Properties

The property bag of the object

(Inherited from WmiSmoObject)
ServiceAccount ServiceAccount ServiceAccount
ServiceState ServiceState ServiceState
StartMode StartMode StartMode
StartupParameters StartupParameters StartupParameters
State State State

Returns the state of the object

(Inherited from SmoObjectBase)
Type Type Type
Urn Urn Urn

Returns the Urn of the object, computed on the fly

(Inherited from WmiSmoObject)
UserData UserData UserData Inherited from SmoObjectBase

Methods

Alter() Alter() Alter()
AlterProtocolProperties(ProtocolPropertyCollection) AlterProtocolProperties(ProtocolPropertyCollection) AlterProtocolProperties(ProtocolPropertyCollection) Inherited from WmiSmoObject
ChangeHadrServiceSetting(Boolean) ChangeHadrServiceSetting(Boolean) ChangeHadrServiceSetting(Boolean)
ChangePassword(String, String) ChangePassword(String, String) ChangePassword(String, String)
CheckObjectState() CheckObjectState() CheckObjectState() Inherited from WmiSmoObject
CreateProtocolPropertyCollection() CreateProtocolPropertyCollection() CreateProtocolPropertyCollection() Inherited from WmiSmoObject
GetPropertyManagementObject(ProtocolProperty) GetPropertyManagementObject(ProtocolProperty) GetPropertyManagementObject(ProtocolProperty) Inherited from WmiSmoObject
GetPropertyObject(PropertyCollection, DataRow, Object) GetPropertyObject(PropertyCollection, DataRow, Object) GetPropertyObject(PropertyCollection, DataRow, Object) Inherited from WmiSmoObject
GetProtocolPropertyCollection() GetProtocolPropertyCollection() GetProtocolPropertyCollection() Inherited from WmiSmoObject
ImplInitialize(String[], OrderBy[]) ImplInitialize(String[], OrderBy[]) ImplInitialize(String[], OrderBy[]) Inherited from WmiSmoObject
Initialize() Initialize() Initialize()

Initializes the object, by reading its properties from the enumerator

(Inherited from WmiSmoObject)
InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[]) InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[]) InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[])

Wraps InvokeMethod calls. When the call fails, returned error codes
are mapped into exceptions.

(Inherited from WmiSmoObject)
InvokeMgmtMethod(ManagementObject, String, Object[]) InvokeMgmtMethod(ManagementObject, String, Object[]) InvokeMgmtMethod(ManagementObject, String, Object[]) Inherited from WmiSmoObject
IsObjectInitialized() IsObjectInitialized() IsObjectInitialized() Inherited from WmiSmoObject
Pause() Pause() Pause()
Refresh() Refresh() Refresh()
Resume() Resume() Resume()
SetName(String) SetName(String) SetName(String) Inherited from WmiSmoObject
SetParentImpl(WmiSmoObject) SetParentImpl(WmiSmoObject) SetParentImpl(WmiSmoObject) Inherited from WmiSmoObject
SetServiceAccount(String, String) SetServiceAccount(String, String) SetServiceAccount(String, String)
Start() Start() Start()
Stop() Stop() Stop()
UpdateObjectState() UpdateObjectState() UpdateObjectState() Inherited from WmiSmoObject
Validate(String, Object[]) Validate(String, Object[]) Validate(String, Object[]) Inherited from SmoObjectBase

Events

ManagementStateChange ManagementStateChange ManagementStateChange

Applies to