WmiCollectionBase.Add(WmiSmoObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified object to the referenced collection.
protected:
virtual void Add(Microsoft::SqlServer::Management::Smo::Wmi::WmiSmoObject ^ wmiObj);
protected virtual void Add (Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject wmiObj);
abstract member Add : Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject -> unit
override this.Add : Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject -> unit
Protected Overridable Sub Add (wmiObj As WmiSmoObject)
Parameters
- wmiObj
- WmiSmoObject
A String value that specifies the name of the object to add to the collection
Examples
Managing Services and Network Settings by Using WMI Provider