IWSManSession::Put method (wsmandisp.h)

Updates a resource.

Syntax

HRESULT Put(
  [in]  VARIANT resourceUri,
  [in]  BSTR    resource,
  [in]  long    flags,
  [out] BSTR    *resultResource
);

Parameters

[in] resourceUri

The identifier of the resource to be updated.

This parameter can contain one of the following:

[in] resource

The updated resource content.

[in] flags

Reserved for future use. Must be set to 0.

[out] resultResource

The XML stream that contains the updated resource content.

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
Target Platform Windows
Header wsmandisp.h
Library WSManDisp.tlb
DLL WSMAuto.dll

See also

IWSManSession

Session.Put