语言

ServerInstance 类

定义

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

public sealed class ServerInstance : Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
type ServerInstance = class
    inherit WmiSmoObject
Public NotInheritable Class ServerInstance
Inherits WmiSmoObject
继承

属性

名称 说明
Name

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

(继承自 WmiSmoObject)
Parent

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

Properties

对象的属性包

(继承自 WmiSmoObject)
ServerProtocols

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

State

返回对象的状态

(继承自 SmoObjectBase)
Urn

返回动态计算的对象 Urn

(继承自 WmiSmoObject)
UserData

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

(继承自 SmoObjectBase)

方法

名称 说明
AlterProtocolProperties(ProtocolPropertyCollection)

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

(继承自 WmiSmoObject)
CheckObjectState()

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

(继承自 WmiSmoObject)
CreateProtocolPropertyCollection()

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

(继承自 WmiSmoObject)
GetPropertyManagementObject(ProtocolProperty)

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

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

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

(继承自 WmiSmoObject)
GetProtocolPropertyCollection()

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

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

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

(继承自 WmiSmoObject)
Initialize()

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

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

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

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

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

(继承自 WmiSmoObject)
IsObjectInitialized()

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

(继承自 WmiSmoObject)
Refresh()

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

(继承自 WmiSmoObject)
SetName(String)

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

(继承自 WmiSmoObject)
SetParentImpl(WmiSmoObject)

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

(继承自 WmiSmoObject)
SetState(SqlSmoState)

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

(继承自 SmoObjectBase)
UpdateObjectState()

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

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

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

(继承自 SmoObjectBase)

适用于