หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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 list.
-
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
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows Vista |
| Minimum supported server |
Windows Server 2008 |
| Header |
|
| Type library |
|
| DLL |
|
| CLSID |
CLSID_SWbemNamedValueSet |
| IID |
IID_ISWbemNamedValueSet |