ResourceLocator.ResourceURI property

Gets or sets the resource URI in a ResourceLocator object. You can provide a ResourceLocator object instead of specifying a resource URI in Session object operations such as Session.Get, Session.Put, or Session.Enumerate.

This property is read/write.

Syntax

ResourceLocator.ResourceURI As string

Property value

A string that identifies the resource. When setting the resource URI for a ResourceLocator object, the URI must contain only the path.

Remarks

The following is an example of a proper path for ResourceURI.

"http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service"

The following path does not work because it contains a key for a specific instance. Use the ResourceLocator.AddSelector method to specify a particular instance.

"http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service?Name=winmgmt"

IWSManResourceLocator::ResourceURI is the corresponding C++ method.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
WSManDisp.h
IDL
WSManDisp.idl
Library
WSManDisp.tlb
DLL
WSMAuto.dll

See also

ResourceLocator