Delen 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

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