Aracılığıyla paylaş


Windows.Devices.Enumeration Namespace

Provides classes for enumerating devices. The following are typical uses of the Windows.Devices.Enumeration API.

  • Building a user interface for selecting the device to be used by an application. For example, a voice chat application may present a list of microphones or webcams for the user to select from, or a photo import application may present a list of removable storage devices for the user to import photos from.
  • Get general information about devices connected to or discoverable by the system.
  • Device discovery and notifications about devices for apps that use them.

Classes

DeviceAccessChangedEventArgs

Provides data for the AccessChanged event.

DeviceAccessInformation

Contains the information about access to a device.

DeviceConnectionChangeTriggerDetails

Provides information about the device that caused this trigger to fire.

DeviceDisconnectButtonClickedEventArgs

Provides data for the DisconnectButtonClicked event on the DevicePicker object.

DeviceInformation

Represents a device. This class allows access to well-known device properties as well as additional properties specified during device enumeration.

DeviceInformationCollection

Represents a collection of DeviceInformation objects.

DeviceInformationCustomPairing

Represents a custom pairing for a DeviceInformation object.

DeviceInformationPairing

Contains information and enables pairing for a device.

DeviceInformationUpdate

Contains updated properties for a DeviceInformation object.

DevicePairingRequestedEventArgs

Provides data for the PairingRequested event.

DevicePairingResult

Contains information about the result of attempting to pair a device.

DevicePairingSetMembersRequestedEventArgs

Event arguments passed to your handler for the DeviceInformationCustomPairing.PairingSetMembersRequested event, which is raised when the member(s) of a pairing set have been requested.

DevicePairingSetMembersRequestedEventArgs contains: a status indicating success or failure; a vector of the devices/endpoints that were added to the set, or that failed to be added to the set, depending on that status; and info about the parent device.

For more info, and code examples, see Pairing a set with the DeviceInformationPairing.Custom property.

DevicePicker

Represents a picker flyout that contains a list of devices for the user to choose from.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

DevicePickerAppearance

Represents the appearance of a device picker.

DevicePickerFilter

Represents the filter used to determine which devices to show in the device picker. The filter parameters are OR-ed together to build the resulting filter.

DeviceSelectedEventArgs

Provides data for the DeviceSelected event on the DevicePicker object.

DeviceThumbnail

Represents the thumbnail image for a device.

DeviceUnpairingResult

Contains information about the result of attempting to unpair a device.

DeviceWatcher

Enumerates devices dynamically, so that the app receives notifications if devices are added, removed, or changed after the initial enumeration is complete.

DeviceWatcherEvent

Triggered when the list of devices is updated after the initial enumeration is complete.

DeviceWatcherTriggerDetails

Provides details about the device updates that invoked the trigger.

EnclosureLocation

Describes the physical location of a device in its enclosure.

Interfaces

IDeviceEnumerationSettings
IDevicePairingSettings

Identifies a collection of settings for device pairing. WiFiDirectConnectionParameters implements IDevicePairingSettings.

Enums

DeviceAccessStatus

Indicates the status of the access to a device.

DeviceClass

Indicates the type of devices that the user wants to enumerate.

DeviceInformationKind

Defines constants that specify a kind of DeviceInformation object.

DevicePairingAddPairingSetMemberStatus

Defines constants that specify a status value describing the result of adding member(s) to a pairing set. For more info, and code examples, see Pairing a set with the DeviceInformationPairing.Custom property. See DevicePairingSetMembersRequestedEventArgs.Status.

DevicePairingKinds

Defines constants that specify kinds of pairing supported by your application or requested by the system. As an input value, use this value to indicate what kinds of pairing your application supports. When this datatype is received as an output value, it indicates the kind of pairing requested by the system; in that case, your code will need to respond accordingly.

DevicePairingProtectionLevel

The level of protection for pairing.

DevicePairingResultStatus

The result of the pairing action with an Association Endpoint (AEP) device object. For more information about AEP objects, see DeviceInformationKind.

DevicePickerDisplayStatusOptions

Indicates what you'd like the device picker to show about a given device. Used with the SetDisplayStatus method on the DevicePicker object.

DeviceUnpairingResultStatus

The result of the unpairing action.

DeviceWatcherEventKind

The type of event.

DeviceWatcherStatus

Describes the state of a DeviceWatcher object.

Panel

Indicates the location of a panel on a computer. This enumeration is used for indicating the physical location of a device.

See also