IWSManEnumerator interface

Represents a stream of results returned from operations such as a WS-Management protocol WS-Enumeration:Enumerate operation.

When to use

To start an enumeration, use IWSManSession.Enumerate. To perform a Pull operation that continues reading items in the enumeration, use IWSManEnumerator.ReadItem.

Members

The IWSManEnumerator interface inherits from the IUnknown interface. IWSManEnumerator also has these types of members:

Methods

The IWSManEnumerator interface has these methods.

MethodDescription
ReadItem

Retrieves an item from the resource and returns an XML representation of the item.

 

Properties

The IWSManEnumerator interface has these properties.

PropertyDescription

AtEndOfStream

Indicates that the end of items in the IWSManEnumerator object has been reached by calls to IWSManEnumerator::ReadItem.

Error

Gets an XML representation of additional error information.

 

Remarks

The corresponding scripting object is Enumerator.

To limit the number of items that are read, set the IWSManSession::BatchItems property.

Be aware that freeing the enumeration object clears pending enumeration requests.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Redistributable

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

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

Windows Remote Management Reference

 

 

Show:
© 2014 Microsoft