Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SWbemNamedValueSet.Remove method

The Remove method of the SWbemNamedValueSet object deletes a named value from the context.

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

Syntax


SWbemNamedValueSet.Remove( _
  ByVal strName, _
  [ ByVal iFlags ] _
)

Parameters

strName [in]

Required. Name of the value to remove.

iFlags [in, optional]

Reserved. This value must be zero if specified.

Return value

This method does not return a value.

Error codes

Upon completion of the Remove method, the Err object may contain one of the error codes in the following table.

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

Unspecified error.

wbemErrInvalidParameter
2147749896 (0x80041008)

An invalid parameter was specified, or the

namespace could not be parsed.

wbemErrNotFound
2147749890 (0x80041002)

The requested item was not found.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

 

 

Show:
© 2015 Microsoft