![]() |
![]() |
![]() |
CaptureDevicesCollection.Current Property |
Language: |
Gets the current element from the enumeration of the CaptureDevicesCollection object.
Visual Basic .NET Overrides Public ReadOnly Property Current As Object C# public override object Current { get; } Managed C++ public: __property virtual Object* get_Current(); JScript .NET public function get Current() : Object
System.Object . The current element from the enumeration of the CaptureDevicesCollection object.
This property is read-only.
Since this method has a return value type of Object
, 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; }
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center