Bewerken

Delen via


SWbemQualifierSet.Item method

The Item method of the SWbemQualifierSet object returns a named SWbemQualifier object from the collection. This is the default method of this object.

For an explanation of this syntax, see Document Conventions for the Scripting API.

Syntax

objQualifier = .Item( _
  ByVal strName, _
  [ ByVal iFlags ] _
)

Parameters

strName [in]

Required. Name of the qualifier to retrieve.

iFlags [in, optional]

Reserved. The default value is 0 (zero).

Return value

If successful, the requested SWbemQualifier object is returned.

Error codes

After completion of the Item 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.

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

SWbemQualifier