Share via


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
AcceptsStop
AdvancedProperties

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

Dependencies

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

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

The property bag of the object

(Inherited from WmiSmoObject)
ServiceAccount
ServiceState
StartMode
StartupParameters
State

Returns the state of the object

(Inherited from SmoObjectBase)
Type
Urn

Returns the Urn of the object, computed on the fly

(Inherited from WmiSmoObject)
UserData (Inherited from SmoObjectBase)

Methods

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

Initializes the object, by reading its properties from the enumerator

(Inherited from WmiSmoObject)
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[]) (Inherited from WmiSmoObject)
IsObjectInitialized() (Inherited from WmiSmoObject)
Pause()
Refresh()
Resume()
SetName(String) (Inherited from WmiSmoObject)
SetParentImpl(WmiSmoObject) (Inherited from WmiSmoObject)
SetServiceAccount(String, String)
SetState(SqlSmoState)

Sets the object state (Existing, Dropped etc.) Applications should avoid using this method.

(Inherited from SmoObjectBase)
Start()
Stop()
UpdateObjectState() (Inherited from WmiSmoObject)
Validate(String, Object[]) (Inherited from SmoObjectBase)

Events

ManagementStateChange

Applies to