SerialDevice.GetDeviceSelector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetDeviceSelector() |
Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find all serial devices on the system. |
GetDeviceSelector(String) |
Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find a serial device by specifying its port name. |
GetDeviceSelector()
Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find all serial devices on the system.
public:
static Platform::String ^ GetDeviceSelector();
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
static winrt::hstring GetDeviceSelector();
[Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
public static string GetDeviceSelector();
function getDeviceSelector()
Public Shared Function GetDeviceSelector () As String
Returns
String formatted as an AQS query.
- Attributes
See also
Applies to
GetDeviceSelector(String)
Gets an Advanced Query Syntax (AQS) string that the app can pass to DeviceInformation.FindAllAsync in order to find a serial device by specifying its port name.
public:
static Platform::String ^ GetDeviceSelector(Platform::String ^ portName);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromPortName")]
static winrt::hstring GetDeviceSelector(winrt::hstring const& portName);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorFromPortName")]
public static string GetDeviceSelector(string portName);
function getDeviceSelector(portName)
Public Shared Function GetDeviceSelector (portName As String) As String
Parameters
- portName
-
String
Platform::String
winrt::hstring
The serial port name. For example, "COM1".
Returns
String formatted as an AQS query.
- Attributes