Export (0) Print
Expand All

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

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

IWSManEx
Windows Remote Management Reference
WSMan

 

 

Show:
© 2014 Microsoft