2 out of 2 rated this helpful - Rate this topic

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.

MethodDescription
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.

PropertyAccess typeDescription

Authority

Read/write

String that defines the Authority component of the object path.

Class

Read/write

Name of the class that is part of the object path.

DisplayName

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.

IsClass

Read-only

Boolean value that indicates if this path represents a class. This is analogous to the __Genus property in the COM API.

IsSingleton

Read-only

Boolean value that indicates if this path represents a singleton instance.

Keys

Read-only

An SWbemNamedValueSet object that contains the key value bindings.

Locale

Read/write

String that contains the locale for this object path.

Namespace

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.

ParentNamespace

Read-only

Name of the parent of the namespace that is part of the object path.

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.

Relpath

Read/write

Contains the relative path. This is the same as the __Relpath system property in the COM API.

Security_

Read-only

Used to read or change the security settings.

Server

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

Wbemdisp.tlb

DLL

Wbemdisp.dll

See also

Scripting API Objects

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.