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

' Data type: string

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Redistributable

WinRM 1.1 (Windows Server 2003 R2, or Windows Server 2003 with SP1)

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

ResourceLocator

 

 

Show:
© 2014 Microsoft