IWSManSession::Get method (wsmandisp.h)
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
[in] resourceUri
The identifier of the resource to be retrieved.
This parameter can contain one of the following:
- URI with or without selectors. When calling the Get method to obtain a WMI resource, use the key property or properties of the object.
- ResourceLocator object which may contain selectors, fragments, or options.
- WS-Addressing endpoint reference as described in the WS-Management protocol standard. For more information about the public specification for the WS-Management protocol, see Management Specifications Index Page.
[in] flags
Reserved for future use. Must be set to 0.
[out] resource
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | wsmandisp.h |
Library | WSManDisp.tlb |
DLL | WSMAuto.dll |