SWbemObjectPath object
Use the methods and properties of the SWbemObjectPath object to construct and validate an object path. This object can be created by the VBScript CreateObject call.
Members
The SWbemObjectPath object has these types of members:
Methods
The SWbemObjectPath object has these methods.
| Method | Description |
|---|---|
| SetAsClass |
Forces the path to address a WMI class. |
| SetAsSingleton |
Forces the path to address a singleton WMI instance. |
Properties
The SWbemObjectPath object has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write |
String that defines the Authority component of the object path. | |
| Read/write |
Name of the class that is part of the object path. | |
| Read/write |
String that contains the path in a form that can be used as a moniker display name. See Creating a WMI Application or Script. | |
| Read-only |
Boolean value that indicates if this path represents a class. This is analogous to the __Genus property in the COM API. | |
| Read-only |
Boolean value that indicates if this path represents a singleton instance. | |
| Read-only |
An SWbemNamedValueSet object that contains the key value bindings. | |
| Read/write |
String that contains the locale for this object path. | |
| Read/write |
Name of the namespace that is part of the object path. This is the same as the __Namespace property in the COM API. | |
| Read-only |
Name of the parent of the namespace that is part of the object path. | |
| Read/write |
Contains the absolute path. This is the same as the __Path system property in the COM API. This is the default property of this object. | |
| Read/write |
Contains the relative path. This is the same as the __Relpath system property in the COM API. | |
| Read-only |
Used to read or change the security settings. | |
| Read/write |
Name of the server. This is the same as the __Server system property in the COM API. |
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Type library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012