IWSManSession::Invoke method

Invokes a method and returns the results of the method call.

Syntax


HRESULT Invoke(
  [in]           BSTR    actionUri,
  [in]           Variant resourceUri,
  [in]           BSTR    parameters,
  [in, optional] long    flags,
  [out]          BSTR    *result
);

Parameters

actionUri [in]

The URI of the method to invoke.

resourceUri [in]

The identifier of the resource to invoke a method.

This parameter can contain one of the following:

parameters [in]

An XML representation of the input for the method. This string must be supplied or this method will fail.

flags [in, optional]

Reserved for future use. Must be set to 0.

result [out]

An XML representation of the method output.

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.Invoke

 

 

Show: