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 |
|---|---|
|
Unspecified failure. |
|
Invalid parameter was specified. |
|
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 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Type library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 11/19/2012