Share via


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.