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

열거할 개체를 DeviceInformation 필터링하는 AQS 디바이스 인터페이스 선택기 문자열입니다. 일반적으로 이 문자열은 디바이스와 상호 작용하는 클래스의 GetDeviceSelector 메서드에서 검색됩니다. 예를 들어 GetDeviceSelector 클래스의 문자열을 검색합니다 StorageDevice .

additionalProperties

IIterable<String>

IEnumerable<String>

열거형 결과에서 개체의 속성에 Properties 포함할 추가 속성의 DeviceInformation 반복 가능한 목록입니다. 속성이 나타내는 항목에 대한 자세한 내용은 디바이스 정보 속성을 참조하세요.

kind
DeviceInformationKind

찾을 특정 유형의 디바이스입니다.

반환

IAsyncOperation<DeviceInformationCollection>

비동기 작업을 관리하기 위한 개체입니다.

특성

추가 정보

적용 대상

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

열거할 디바이스 클래스입니다.

반환

IAsyncOperation<DeviceInformationCollection>

비동기 작업을 관리하기 위한 개체입니다.

특성

추가 정보

적용 대상

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

열거할 개체를 DeviceInformation 필터링하는 AQS 디바이스 인터페이스 선택기 문자열입니다. 일반적으로 이 문자열은 디바이스와 상호 작용하는 클래스의 GetDeviceSelector 메서드에서 검색됩니다. 예를 들어 GetDeviceSelector 클래스의 문자열을 검색합니다 StorageDevice .

additionalProperties

IIterable<String>

IEnumerable<String>

열거형 결과에서 개체의 속성에 Properties 포함할 추가 속성의 DeviceInformation 반복 가능한 목록입니다. 속성이 나타내는 항목에 대한 자세한 내용은 디바이스 정보 속성을 참조하세요.

반환

IAsyncOperation<DeviceInformationCollection>

비동기 작업을 관리하기 위한 개체입니다.

특성

추가 정보

적용 대상

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)

반환

IAsyncOperation<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

열거할 개체를 필터링하는 DeviceInformation AQS 디바이스 인터페이스 선택기 문자열입니다. 일반적으로 이 문자열은 디바이스와 상호 작용하는 클래스의 GetDeviceSelector 메서드에서 검색됩니다. 예를 들어 클래스 GetDeviceSelector 의 문자열을 검색합니다 StorageDevice .

반환

IAsyncOperation<DeviceInformationCollection>

비동기 작업을 관리하기 위한 개체입니다.

특성

설명

중요

이 메서드는 JavaScript를 사용하여 사용할 수 없습니다. 이 클래스를 사용하려고 하면 코드가 잘못된 클래스를 사용하여 호출 FindAllAsync(DeviceClass) 하고 모든 디바이스에서 컬렉션을 반환합니다. 대신 다른 속성이 필요하지 않은 경우 null 을 두 번째 매개 변수로 사용해야 FindAllAsync(String, IIterable(String) 합니다.

추가 정보

적용 대상