WmiCollectionBase.Remove 方法

Removes the specified object from the referenced collection.

命名空间:  Microsoft.SqlServer.Management.Smo.Wmi
程序集:  Microsoft.SqlServer.SqlWmiManagement(在 Microsoft.SqlServer.SqlWmiManagement.dll 中)

语法

声明
Protected Overridable Sub Remove ( _
    objname As String _
)
用法
Dim objname As String 

Me.Remove(objname)
protected virtual void Remove(
    string objname
)
protected:
virtual void Remove(
    String^ objname
)
abstract Remove : 
        objname:string -> unit  
override Remove : 
        objname:string -> unit
protected function Remove(
    objname : String
)

参数

  • objname
    类型:System.String
    A String value that specifies the name of the object to remove from the collection.

示例

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

请参阅

参考

WmiCollectionBase 类

Microsoft.SqlServer.Management.Smo.Wmi 命名空间

其他资源

WMI and SQL Server

连接到 SQL Server 数据库引擎