Udostępnij przez


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

'Deklaracja
Protected Overridable Sub Add ( _
    wmiObj As WmiSmoObject _
)
protected virtual void Add (
    WmiSmoObject wmiObj
)
protected:
virtual void Add (
    WmiSmoObject^ wmiObj
)
protected void Add (
    WmiSmoObject wmiObj
)
protected function Add (
    wmiObj : WmiSmoObject
)

Parameters

  • wmiObj
    A String value that specifies the name of the object to add to the collection

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.