CaptureDevicesCollection.Current Property (Microsoft.DirectX.DirectSound)

Gets the current element from the enumeration of the CaptureDevicesCollection object.

Definition

Visual Basic Overrides Public ReadOnly Property Current As Object
C# public override object Current { get; }
C++ public:
property virtual ObjectLeave Site^ Current override {
        ObjectLeave Site^ get();
}
JScript public function get Current() : ObjectLeave Site

Property Value

System.Object
The current element from the enumeration of the CaptureDevicesCollection object.

This property is read-only. 

Remarks

Since this method has a return value type of ObjectLeave Site, you must cast it into a DeviceInformation structure to access its properties and method. See the example below:

[C#]CaptureDevicesCollection devices = new CaptureDevicesCollection();
while (devices.MoveNext())
{
    DeviceInformation di = (DeviceInformation)devices.Current;
}