QueryOptions.SetPropertyPrefetch 메서드

정의

쿼리가 실행되는 동안(대/소문자 단위로 검색하는 대신) 쿼리 결과 집합의 모든 항목에 대해 시스템이 미리 로드해야 하는 속성을 지정합니다. 많은 속성이 지정된 경우 쿼리를 실행하는 데 시간이 더 오래 걸릴 수 있지만 쿼리 결과에 대한 후속 속성 검색은 더 빠릅니다.

public:
 virtual void SetPropertyPrefetch(PropertyPrefetchOptions options, IIterable<Platform::String ^> ^ propertiesToRetrieve) = SetPropertyPrefetch;
void SetPropertyPrefetch(PropertyPrefetchOptions const& options, IIterable<winrt::hstring> const& propertiesToRetrieve);
public void SetPropertyPrefetch(PropertyPrefetchOptions options, IEnumerable<string> propertiesToRetrieve);
function setPropertyPrefetch(options, propertiesToRetrieve)
Public Sub SetPropertyPrefetch (options As PropertyPrefetchOptions, propertiesToRetrieve As IEnumerable(Of String))

매개 변수

options
PropertyPrefetchOptions

미리 검색할 속성 집합을 지정하는 값입니다.

가능한 속성 집합은 StorageFile 클래스에서 사용할 수 있는 속성 집합과 일치합니다. 예를 들어 PropertyPrefetchOptions.BasicPropertiesStorageFile.GetBasicPropertiesAsync 를 통해 사용 가능한 모든 속성을 미리 검색합니다.

propertiesToRetrieve

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

속성 이름의 배열로 미리 검색할 속성의 사용자 지정 목록입니다. 시스템 속성 이름을 사용하여 속성을 지정합니다(예: System.CopyrightSystem.Image.ColorSpace).

검색할 추가 속성 목록입니다.

적용 대상

추가 정보