Skip to content

Latest commit

 

History

History
131 lines (78 loc) · 2.88 KB

swbemqualifierset-remove.md

File metadata and controls

131 lines (78 loc) · 2.88 KB
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
APIRef
kbSyntax
SWbemQualifierSet.Remove
ISWbemQualifierSet.Remove
ISWbemQualifierSet.Remove
COM
Wbemdisp.dll

SWbemQualifierSet.Remove method

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.

Syntax

SWbemQualifierSet.Remove( _
  ByVal strName, _
  [ ByVal iFlags ] _
)

Parameters

strName [in]

Required. Name of the qualifier to remove.

iFlags [in, optional]

Reserved. The default value is 0.

Return value

This method does not return a value.

Error codes

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.

Remarks

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.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Wbemdisp.h
Type library
Wbemdisp.tlb
DLL
Wbemdisp.dll
CLSID
CLSID_SWbemQualifierSet
IID
IID_ISWbemQualifierSet

See also

SWbemQualifierSet

SWbemQualifierSet.Add