Microsoft DirectX 9.0 SDK Update (October 2004)

DevicesCollection.Current Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrives the element at the current position of the DevicesCollection object's enumeration.

Definition

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

Property Value

System.Object . The current element from the DevicesCollection object's enumeration.

This property is read-only. 

Remarks

Since this method has a return value type of Object Leave Site, 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; }


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center