DevicesCollection.Current Property |
Language: |
Retrives the element at the current position of the DevicesCollection object's enumeration.
Visual Basic Overrides Public ReadOnly Property Current As Object C# public override object Current { get; } C++ public:
property virtual Object^ Current override {
Object^ get();
}JScript public function get Current() : Object
System.Object
This property is read-only.
The current element from the DevicesCollection object's enumeration.
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#]
DevicesCollection devices = new DevicesCollection(); while (devices.MoveNext()) { DeviceInformation di = (DeviceInformation)devices.Current; }
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center