Virtual Serial Ports - Software Virtual COM Port Null Modem Cable Emulator for Windows
Docs

IDeviceCollection Interface

This interface is used to enumerate existing virtual serial devices.

Declaration

// This interface is not available in scripting environment
public interface IDeviceCollection
{
    // Properties
    ${IVirtualSerialDevice} ${this}[object Index] { get; set; }
    int ${Count} { get; }
    // Methods
    IEnumerator ${GetEnumerator}();
}
struct IDeviceCollection : IDispatch
{
    // Properties
    ${IVirtualSerialDevicePtr#IVirtualSerialDevice} ${Item}(const _variant_t & Index);  // get set 
    long ${Count};  // get 
    // Methods
    IUnknownPtr ${Get_NewEnum#GetEnumerator}();
};

IDeviceCollection Properties

this

// This property is not available in scripting environment
${IVirtualSerialDevice} this[object Index] { get; set; }
${IVirtualSerialDevicePtr#IVirtualSerialDevice} Item(const _variant_t & Index);  // get set 

Returns the device from the collection.

Count

// This property is not available in scripting environment
int Count { get; }
long Count;  // get 

Returns the total number of devices in a collection object.

IDeviceCollection Methods

GetEnumerator

// This method is not available in scripting environment
IEnumerator GetEnumerator();
IUnknownPtr Get_NewEnum();

Returns standard OLE enumerator for this object.