หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
The SetAsSingleton method of the SWbemObjectPath object forces the path to address a singleton WMI instance of a class. A singleton class is a class that can never have more than one instance.
For an explanation of this syntax, see Document Conventions for the Scripting API. SWbemObjectPath
Syntax
SWbemObjectPath.SetAsSingleton()
Parameters
This method has no parameters.
Return value
This method does not return a value.
Error codes
Upon completion of the SetAsSingleton method, the Err object may contain the error code below.
-
wbemErrFailed - 2147749889 (0x80041001)
-
Unspecified error.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows Vista |
| Minimum supported server |
Windows Server 2008 |
| Header |
|
| Type library |
|
| DLL |
|
| CLSID |
CLSID_SWbemObjectPath |
| IID |
IID_ISWbemObjectPath |