IWSManSession::Get method

Retrieves the resource specified by the URI and returns an XML representation of the current instance of the resource.

Syntax


HRESULT Get(
  [in]  Variant resourceUri,
  [in]  long    flags,
  [out] BSTR    *resource
);

Parameters

resourceUri [in]

The identifier of the resource to be retrieved.

This parameter can contain one of the following:

flags [in]

Reserved for future use. Must be set to 0.

resource [out]

A value that, upon success, is an XML representation of the resource.

Return value

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

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

IWSManSession
Session.Get

 

 

Show: