Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Redistributable

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

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

IWSManEx
Windows Remote Management Reference
WSMan

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.