DeviceInformation.FindAllAsync メソッド

定義

オーバーロード

FindAllAsync(String, IIterable<String>, DeviceInformationKind)

指定した高度なクエリ構文 (AQS) デバイス インターフェイス セレクター文字列、デバイスの種類、および指定したプロパティのコレクションに一致する DeviceInformation オブジェクトを列挙します。

FindAllAsync(DeviceClass)

指定したクラスの DeviceInformation オブジェクトを列挙します。

FindAllAsync(String, IIterable<String>)

指定した高度なクエリ構文 (AQS) デバイス インターフェイス セレクター文字列に一致し、指定したプロパティのコレクションを含む DeviceInformation オブジェクトを列挙します。

FindAllAsync()

すべての DeviceInformation オブジェクトを 列挙します。

FindAllAsync(String)

指定した高度なクエリ構文 (AQS) デバイス インターフェイス セレクター文字列に一致する DeviceInformation オブジェクトを列挙します。

FindAllAsync(String, IIterable<String>, DeviceInformationKind)

指定した高度なクエリ構文 (AQS) デバイス インターフェイス セレクター文字列、デバイスの種類、および指定したプロパティのコレクションに一致する DeviceInformation オブジェクトを列挙します。

public:
 static IAsyncOperation<DeviceInformationCollection ^> ^ FindAllAsync(Platform::String ^ aqsFilter, IIterable<Platform::String ^> ^ additionalProperties, DeviceInformationKind kind);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncWithKindAqsFilterAndAdditionalProperties")]
 static IAsyncOperation<DeviceInformationCollection> FindAllAsync(winrt::hstring const& aqsFilter, IIterable<winrt::hstring> const& additionalProperties, DeviceInformationKind const& kind);
[Windows.Foundation.Metadata.Overload("FindAllAsyncWithKindAqsFilterAndAdditionalProperties")]
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(string aqsFilter, IEnumerable<string> additionalProperties, DeviceInformationKind kind);
function findAllAsync(aqsFilter, additionalProperties, kind)
Public Shared Function FindAllAsync (aqsFilter As String, additionalProperties As IEnumerable(Of String), kind As DeviceInformationKind) As IAsyncOperation(Of DeviceInformationCollection)

パラメーター

aqsFilter
String

Platform::String

winrt::hstring

列挙する DeviceInformation オブジェクトをフィルター処理する AQS デバイス インターフェイス セレクター文字列。 通常、この文字列は、デバイスと対話するクラスの GetDeviceSelector メソッドから取得されます。 たとえば、 GetDeviceSelectorStorageDevice クラスの文字列を取得します。

additionalProperties

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

列挙結果の DeviceInformation オブジェクトの Properties プロパティに含める追加のプロパティのリスト。 プロパティが表す内容の詳細については、「 デバイス情報のプロパティ」を参照してください。

kind
DeviceInformationKind

検索する特定の種類のデバイス。

戻り値

非同期操作を管理するための オブジェクト。

属性

こちらもご覧ください

適用対象

FindAllAsync(DeviceClass)

指定したクラスの DeviceInformation オブジェクトを列挙します。

public:
 static IAsyncOperation<DeviceInformationCollection ^> ^ FindAllAsync(DeviceClass deviceClass);
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncDeviceClass")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<DeviceInformationCollection> FindAllAsync(DeviceClass const& deviceClass);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("FindAllAsyncDeviceClass")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(DeviceClass deviceClass);
function findAllAsync(deviceClass)
Public Shared Function FindAllAsync (deviceClass As DeviceClass) As IAsyncOperation(Of DeviceInformationCollection)

パラメーター

deviceClass
DeviceClass

列挙するデバイスのクラス。

戻り値

非同期操作を管理するための オブジェクト。

属性

こちらもご覧ください

適用対象

FindAllAsync(String, IIterable<String>)

指定した高度なクエリ構文 (AQS) デバイス インターフェイス セレクター文字列に一致し、指定したプロパティのコレクションを含む DeviceInformation オブジェクトを列挙します。

public:
 static IAsyncOperation<DeviceInformationCollection ^> ^ FindAllAsync(Platform::String ^ aqsFilter, IIterable<Platform::String ^> ^ additionalProperties);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncAqsFilterAndAdditionalProperties")]
 static IAsyncOperation<DeviceInformationCollection> FindAllAsync(winrt::hstring const& aqsFilter, IIterable<winrt::hstring> const& additionalProperties);
[Windows.Foundation.Metadata.Overload("FindAllAsyncAqsFilterAndAdditionalProperties")]
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(string aqsFilter, IEnumerable<string> additionalProperties);
function findAllAsync(aqsFilter, additionalProperties)
Public Shared Function FindAllAsync (aqsFilter As String, additionalProperties As IEnumerable(Of String)) As IAsyncOperation(Of DeviceInformationCollection)

パラメーター

aqsFilter
String

Platform::String

winrt::hstring

列挙する DeviceInformation オブジェクトをフィルター処理する AQS デバイス インターフェイス セレクター文字列。 通常、この文字列は、デバイスと対話するクラスの GetDeviceSelector メソッドから取得されます。 たとえば、 GetDeviceSelectorStorageDevice クラスの文字列を取得します。

additionalProperties

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

列挙結果の DeviceInformation オブジェクトの Properties プロパティに含める追加のプロパティのリスト。 プロパティが表す内容の詳細については、「 デバイス情報のプロパティ」を参照してください。

戻り値

非同期操作を管理するための オブジェクト。

属性

こちらもご覧ください

適用対象

FindAllAsync()

すべての DeviceInformation オブジェクトを 列挙します。

public:
 static IAsyncOperation<DeviceInformationCollection ^> ^ FindAllAsync();
/// [Windows.Foundation.Metadata.Overload("FindAllAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<DeviceInformationCollection> FindAllAsync();
[Windows.Foundation.Metadata.Overload("FindAllAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync();
function findAllAsync()
Public Shared Function FindAllAsync () As IAsyncOperation(Of DeviceInformationCollection)

戻り値

非同期操作を管理するための オブジェクト。

属性

こちらもご覧ください

適用対象

FindAllAsync(String)

指定した高度なクエリ構文 (AQS) デバイス インターフェイス セレクター文字列に一致する DeviceInformation オブジェクトを列挙します。

public:
 static IAsyncOperation<DeviceInformationCollection ^> ^ FindAllAsync(Platform::String ^ aqsFilter);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncAqsFilter")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<DeviceInformationCollection> FindAllAsync(winrt::hstring const& aqsFilter);
[Windows.Foundation.Metadata.Overload("FindAllAsyncAqsFilter")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<DeviceInformationCollection> FindAllAsync(string aqsFilter);
function findAllAsync(aqsFilter)
Public Shared Function FindAllAsync (aqsFilter As String) As IAsyncOperation(Of DeviceInformationCollection)

パラメーター

aqsFilter
String

Platform::String

winrt::hstring

列挙する DeviceInformation オブジェクトをフィルター処理する AQS デバイス インターフェイス セレクター文字列。 通常、この文字列は、デバイスと対話するクラスの GetDeviceSelector メソッドから取得されます。 たとえば、 GetDeviceSelectorStorageDevice クラスの文字列を取得します。

戻り値

非同期操作を管理するための オブジェクト。

属性

注釈

重要

このメソッドは、JavaScript を使用して使用できません。 これを使用しようとすると、コードは代わりに無効なクラスで FindAllAsync(DeviceClass) を呼び出し、すべてのデバイスでコレクションを返します。 代わりに、他のプロパティが必要ない場合は、2 番目のパラメーターとして FindAllAsync(String, IIterable(String)null を 使用する必要があります。

こちらもご覧ください

適用対象