Export (0) Print
Expand All

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 table.

Error (Name/Dec/Hex)Meaning
wbemErrFailed
2147749889 (0x80041001)

Unspecified failure.

wbemErrInvalidParameter
2147749896 (0x80041008)

Invalid parameter was specified.

wbemErrOutOfMemory
2147749896

Not enough memory for this method to execute.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

 

 

Show:
© 2014 Microsoft