IWSManEx::CreateResourceLocator method (wsmandisp.h)

Creates a ResourceLocator object that can be used instead of a resource URI in Session object operations such as IWSManSession.Get, IWSManSession.Put, or Session.Enumerate.

Syntax

HRESULT CreateResourceLocator(
  [in]  BSTR      strResourceLocator,
  [out] IDispatch **newResourceLocator
);

Parameters

[in] strResourceLocator

The resource URI for the resource. For more information about URI strings, see Resource URIs.

[out] newResourceLocator

A pointer to a new instance of IWSManResourceLocator.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the FragmentDialect property is not specified in the IWSManResourceLocator object, the default is the XPath 1.0 specification. For more information, see http://www.w3.org/TR/xpath.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wsmandisp.h
Library WSManDisp.tlb
DLL WSMAuto.dll

See also

IWSManEx

WSMan

Windows Remote Management Reference