ResourceLocator.FragmentPath property

Gets or sets the path for a resource fragment or property when ResourceLocator is used in Session object operations such as Session.Get, Session.Put, or Session.Enumerate.

This property is read/write.

Syntax

ResourceLocator.FragmentPath

Property value

String that identifies the fragment or property of the resource. For example, if the resource is a disk drive and the requested property is Manufacturer, the string may contain Diskdrive/Manufacturer. The fragment text is case-sensitive. In this case, you cannot use diskdrive/manufacturer.

Remarks

IWSManResourceLocator::FragmentPath is the corresponding C++ property.

You can specify one element of an array property by supplying the array index as shown in the following example. Be aware that array indexing starts with 1 rather than 0.

Const Uri = "http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_NetworkAdapterConfiguration"
Const FragmentPath = "DNSServerSearchOrder[1]"

To get the whole array, specify the array property name as shown in the following example.

Const Uri = "http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_NetworkAdapterConfiguration"
Const FragmentPath = "DNSServerSearchOrder"

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