Compartir a través de


Device.DeviceID property

Retrieves the DeviceID (Device) for this Device.

This property is read-only.

Syntax

Property DeviceID( _
)

Property value

String value.

Examples

The following example shows how to display the name and ID of the selected device.

Dim dev 'As Device

Set dev = CommonDialog1.ShowSelectDevice

MsgBox "You selected the following device" & vbCrLf & _
       "Name:" & dev.Properties("Name").Value  & vbCrLf & _
       "DeviceID:" & dev.DeviceID

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

Device

DeviceID (DeviceInfo)

OnEvent

RegisterEvent

RegisterPersistentEvent

UnregisterEvent

UnregisterPersistentEvent