Bewerken

Delen via


SWbemPropertySet.Item method

The Item method of the SWbemPropertySet object gets a named SWbemProperty from the collection. This is the default method for this object.

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

Syntax

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

Parameters

strName [in]

Required. Name of the property to retrieve.

iFlags [in, optional]

Reserved. This value must be zero if specified.

Return value

If successful, the requested SWbemProperty object is returned.

Error codes

After the completion of the Item method, the Err object may contain one of the error codes in the following list.

wbemErrFailed - 2147749889 (0x80041001)

Unspecified failure.

wbemErrInvalidParameter - 2147749896 (0x80041008)

Invalid parameter was specified.

wbemErrOutOfMemory - 2147749896

Not enough memory for this method to execute.

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_SWbemPropertySet
IID
IID_ISWbemPropertySet