using System; using System.Collections; using System.Runtime.InteropServices; using System.Text; namespace Intel.Management.Wsman { /// /// Supports a simple iteration over a collection of items returned from a WsMan service /// /// See IWsmanItem [InterfaceType(ComInterfaceType.InterfaceIsDual)] [Guid("5505BAA7-2BFA-45ab-9D08-CE8C687BB700")] [ComVisible(true)] public interface IWsmanEnumeration : IDisposable { /// /// Gets the Connection Object being used to retrieve the items from the service /// IWsmanConnection Connection { get; } /// /// Gets a value indicating whether there are more items in the collection /// bool HasNext { get;} /// /// Gets the next Item in the collection /// /// An IWsmanItem representing the next item in the collection IWsmanItem Next(); /// /// Closes an incomplete enumeration /// /// void Close(); /// /// Returns an enumerator that iterates through a collection /// /// An IEnumerator object that can be used to iterate through the collection [DispId(-4)] IEnumerator GetEnumerator(); } }