SWbemMethodSet.Item method
The Item method of the SWbemMethodSet object returns a named SWbemMethod object from the collection.
For an explanation of this syntax, see Document Conventions for the Scripting API.
Syntax
objMethod = .Item( _
ByVal strName, _
[ ByVal iFlags ] _
)
Parameters
-
strName [in]
-
Required. Name of the method to retrieve.
-
iFlags [in, optional]
-
Reserved. The default value is 0.
Return value
If successful, the requested SWbemMethod object returns.
Error codes
Upon 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 - 2147749894
-
Unspecified error.
-
wbemErrNotFound - 2147749890 (0x80041002)
-
The specified method does not exist.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
Type library |
|
DLL |
|
CLSID |
CLSID_SWbemMethodSet |
IID |
IID_ISWbemMethodSet |