IWSManEx::CreateResourceLocator method

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      uri,
  [out] IDispatch **newResourceLocator
);

Parameters

uri [in]

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

newResourceLocator [out]

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

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

IWSManEx
Windows Remote Management Reference
WSMan

 

 

Show: