Share via


WmiCollectionBase.Add Method

Adds the specified object to the referenced collection.

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

Syntax

'Declaration
Protected Overridable Sub Add ( _
    wmiObj As WmiSmoObject _
)
'Usage
Dim wmiObj As WmiSmoObject

Me.Add(wmiObj)
protected virtual void Add(
    WmiSmoObject wmiObj
)
protected:
virtual void Add(
    WmiSmoObject^ wmiObj
)
abstract Add : 
        wmiObj:WmiSmoObject -> unit 
override Add : 
        wmiObj:WmiSmoObject -> unit 
protected function Add(
    wmiObj : WmiSmoObject
)

Parameters