语言

Service 类

定义

封装实例类: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
继承
实现

属性

名称 说明
AcceptsPause

封装实例类:ManagedComputer[@Name='']/Service

AcceptsStop

封装实例类:ManagedComputer[@Name='']/Service

AdvancedProperties

这是保存服务器和客户端协议属性的属性包

Dependencies

这是保存服务器和客户端协议属性的属性包

Description

封装实例类:ManagedComputer[@Name='']/Service

DisplayName

封装实例类:ManagedComputer[@Name='']/Service

ErrorControl

封装实例类:ManagedComputer[@Name='']/Service

ExitCode

封装实例类:ManagedComputer[@Name='']/Service

IsHadrEnabled

封装实例类:ManagedComputer[@Name='']/Service

Name

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
Parent

封装实例类:ManagedComputer[@Name='']/Service

PathName

封装实例类:ManagedComputer[@Name='']/Service

ProcessId

封装实例类:ManagedComputer[@Name='']/Service

Properties

对象的属性包

(继承自 WmiSmoObject)
ServiceAccount

封装实例类:ManagedComputer[@Name='']/Service

ServiceState

封装实例类:ManagedComputer[@Name='']/Service

StartMode

封装实例类:ManagedComputer[@Name='']/Service

StartupParameters

封装实例类:ManagedComputer[@Name='']/Service

State

返回对象的状态

(继承自 SmoObjectBase)
Type

封装实例类:ManagedComputer[@Name='']/Service

Urn

返回动态计算的对象 Urn

(继承自 WmiSmoObject)
UserData

封装实例类:ManagedComputer[@Name='']/Service

(继承自 SmoObjectBase)

方法

名称 说明
Alter()

封装实例类:ManagedComputer[@Name='']/Service

AlterProtocolProperties(ProtocolPropertyCollection)

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
ChangeHadrServiceSetting(Boolean)

封装实例类:ManagedComputer[@Name='']/Service

ChangePassword(String, String)

封装实例类:ManagedComputer[@Name='']/Service

CheckObjectState()

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
CreateProtocolPropertyCollection()

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
GetPropertyManagementObject(ProtocolProperty)

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
GetPropertyObject(PropertyCollection, DataRow, Object)

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
GetProtocolPropertyCollection()

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
ImplInitialize(String[], OrderBy[])

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
Initialize()

通过从枚举器读取其属性来初始化对象

(继承自 WmiSmoObject)
InvokeMgmtMethod(ManagementObject, ManagementOperationObserver, String, Object[])

包装 InvokeMethod 调用。 调用失败时,返回的错误代码
映射到异常。

(继承自 WmiSmoObject)
InvokeMgmtMethod(ManagementObject, String, Object[])

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
IsObjectInitialized()

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
Pause()

封装实例类:ManagedComputer[@Name='']/Service

Refresh()

封装实例类:ManagedComputer[@Name='']/Service

Resume()

封装实例类:ManagedComputer[@Name='']/Service

SetName(String)

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
SetParentImpl(WmiSmoObject)

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
SetServiceAccount(String, String)

封装实例类:ManagedComputer[@Name='']/Service

SetState(SqlSmoState)

设置对象状态(现有、已删除等)应用程序应避免使用此方法。

(继承自 SmoObjectBase)
Start()

封装实例类:ManagedComputer[@Name='']/Service

Stop()

封装实例类:ManagedComputer[@Name='']/Service

UpdateObjectState()

封装实例类:ManagedComputer[@Name='']/Service

(继承自 WmiSmoObject)
Validate(String, Object[])

封装实例类:ManagedComputer[@Name='']/Service

(继承自 SmoObjectBase)

活动

名称 说明
ManagementStateChange

封装实例类:ManagedComputer[@Name='']/Service

适用于