Sdílet prostřednictvím


WmiCollectionBase.Remove Method

Removes the specified object from the referenced collection.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Protected Overridable Sub Remove ( _
    objname As String _
)
'Usage
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
)

Parameters

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

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

WmiCollectionBase Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine