UtilDisplayGetDisplayDevices Method
Gets a collection of
DisplayDevice that represents
all display devices connected to the current machine.
Namespace: DevCase.Core.IO.Devices.DisplayAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static ReadOnlyCollection<DisplayDevice> GetDisplayDevices()
public:
static ReadOnlyCollection<DisplayDevice>^ GetDisplayDevices()
static member GetDisplayDevices : unit -> ReadOnlyCollection<DisplayDevice>
No code example is currently available or this language may not be supported.
Return Value
ReadOnlyCollectionDisplayDevice
A collection of
DisplayDevice that represents all display devices connected to the current machine.
This is a code example.
No code example is currently available or this language may not be supported.
Dim displayDevices As ReadOnlyCollection(Of DisplayDevice) = GetDisplayDevices()
For Each device As DisplayDevice In displayDevices
Console.WriteLine($"Device Name: {device.DeviceName}")
Console.WriteLine($"Friendly Name: {device.DeviceString}")
Console.WriteLine($"Flags: {device.StateFlags}")
Console.WriteLine($"Id: {device.DeviceID}")
Console.WriteLine()
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.