Microsoft DirectX 9.0 SDK Update (October 2004)

DeviceCreationParameters.AdapterOrdinal Property

Language:

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

Retrieves an ordinal number that denotes the display adapter.

Definition

Visual Basic .NET Public ReadOnly Property AdapterOrdinal As Integer
C# public int AdapterOrdinal { get; }
Managed C++ public: __property int get_AdapterOrdinal();
JScript .NET public function get AdapterOrdinal() : int

Property Value

System.Int32 . An Int32 Leave Site value that indicates an ordinal number that denotes the display adapter.

This property is read-only. 

Remarks

Use this ordinal as the adapter parameter for any of the Manager methods.

Note that different instances of Microsoft® Direct3D® objects can use different ordinals. For example, adapters can enter or leave a system when users add or remove monitors from a multiple-monitor system, or when they hot-swap a laptop. Consequently, this ordinal should be used only in a Direct3D instance known to be valid, such as the Direct3D object that created this Device.


© 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