ServerInstance 类

定义

ServerInstance类表示 Microsoft SQL Server的实例。

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

示例

使用 WMI 提供程序管理服务和网络设置

注解

借助类 ServerInstance ,可以:

  • 管理SQL Server实例上的协议和网络库。

线程安全性

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 但不保证所有实例成员都是线程安全的。

属性

Name

获取或设置所引用 Windows Management Instrumentation (WMI) 对象的名称。

(继承自 WmiSmoObject)
Parent

获取是 ManagedComputer 对象的父对象的 ServerInstance 对象。

Properties

表示 Property 对象集合。 每个 Property 对象都表示在 Windows Management Instrumentation (WMI) 对象上定义的一个属性。

(继承自 WmiSmoObject)
ServerProtocols

表示 ServerProtocol 对象集合。 每个 ServerProtocol 对象表示在 Microsoft Management Instrumentation (WMI) 安装上定义的服务器协议。

State

获取所引用对象的状态。

(继承自 SmoObjectBase)
Urn

获取表示 Windows Management Instrumentation (WMI) 对象的统一资源名称 (URN) 地址。

(继承自 WmiSmoObject)
UserData

获取或设置与所引用对象关联的用户定义数据。

(继承自 SmoObjectBase)

方法

AlterProtocolProperties(ProtocolPropertyCollection)

更新 Windows Management Instrumentation (WMI) 安装上的任何协议对象属性更改。

(继承自 WmiSmoObject)
CheckObjectState()

检查所引用对象的状态。

(继承自 WmiSmoObject)
CreateProtocolPropertyCollection()

创建所引用对象的一组协议属性。

(继承自 WmiSmoObject)
GetPropertyManagementObject(ProtocolProperty)

获取指定协议属性的管理对象。

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

使用指定的位置和值从指定集合中检索属性。

(继承自 WmiSmoObject)
GetProtocolPropertyCollection()

返回所引用对象的协议属性集合。

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

初始化 WmiSmoObject 对象的字段。

(继承自 WmiSmoObject)
Initialize()

初始化所引用的对象。

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

使用指定的管理对象、观测方、方法名称和参数调用所引用对象的管理方法。

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

使用指定的管理对象、方法名称和参数调用所引用对象的管理方法。

(继承自 WmiSmoObject)
IsObjectInitialized()

指定所引用的对象是否已初始化。

(继承自 WmiSmoObject)
Refresh()

刷新所引用对象及其属性。

(继承自 WmiSmoObject)
SetName(String)

设置所引用对象的名称。

(继承自 WmiSmoObject)
SetParentImpl(WmiSmoObject)

设置所引用对象的父对象。

(继承自 WmiSmoObject)
UpdateObjectState()

更新对象状态。

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

验证对象的状态。

(继承自 SmoObjectBase)

适用于