description | ms.assetid | ms.tgt_platform | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The Remove method of the SWbemQualifierSet object deletes a named qualifier from the collection. |
7d386858-efd1-42e6-9176-9cb4bcfc77d0 |
multiple |
SWbemQualifierSet.Remove method (Wbemdisp.h) |
reference |
05/31/2018 |
|
|
|
|
The Remove method of the SWbemQualifierSet object deletes a named qualifier from the collection.
For an explanation of this syntax, see Document Conventions for the Scripting API.
SWbemQualifierSet.Remove( _
ByVal strName, _
[ ByVal iFlags ] _
)
-
strName [in]
-
Required. Name of the qualifier to remove.
-
iFlags [in, optional]
-
Reserved. The default value is 0.
This method does not return a value.
After completion of the Remove method, the Err object may contain one of the error codes in the following list.
-
wbemErrInvalidParameter - 2147749896 (0x80041008)
-
The iFlags parameter was not valid.
-
wbemErrFailed - 2147749889 (0x80041001)
-
Unspecified error.
-
wbemErrNotFound - 2147749890 (0x80041002)
-
Specified qualifier does not exist.
-
wbemErrInvalidOperation - 2147749910 (0x80041016)
-
Removing this qualifier is illegal.
You cannot iterate a collection while removing items because when you remove an element from a collection, the collection pointer is moved to the next element. For more information, see Accessing a Collection.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
Type library |
|
DLL |
|
CLSID |
CLSID_SWbemQualifierSet |
IID |
IID_ISWbemQualifierSet |