description | ms.assetid | ms.tgt_platform | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The Add method of the SWbemNamedValueSet object adds an SWbemNamedValue object to the collection. If an element already exists in the collection with the same name, the new element replaces it. |
471b23f5-6c53-40e2-a2a9-0798044c9dfb |
multiple |
SWbemNamedValueSet.Add method (Wbemdisp.h) |
reference |
05/31/2018 |
|
|
|
|
The Add method of the SWbemNamedValueSet object adds an SWbemNamedValue object to the collection. If an element already exists in the collection with the same name, the new element replaces it.
For an explanation of this syntax, see Document Conventions for the Scripting API.
objNamedValue = .Add( _
ByVal strName, _
ByVal varVal, _
[ ByVal iFlags ] _
)
-
strName [in]
-
Required. Name of the new value.
-
varVal [in]
-
Required. Variant that represents the new value.
-
iFlags [in, optional]
-
Reserved and must be set to zero if specified.
If successful, this method returns the newly modified or newly created SWbemNamedValue object.
For examples of adding and retrieving named values, see SWbemNamedValue.Value.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
Type library |
|
DLL |
|
CLSID |
CLSID_SWbemNamedValueSet |
IID |
IID_ISWbemNamedValueSet |