다음을 통해 공유


ResourceIndexer 클래스

정의

원본 리소스 파일 또는 컨테이너를 인덱싱하고 특정 파일 및 폴더 명명 규칙을 사용하여 명명된 리소스 후보를 생성합니다.

중요

UWP 앱에서는 이 클래스를 사용할 수 없습니다.

public ref class ResourceIndexer sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2, 65536, Windows.ApplicationModel.Resources.Management.ResourceIndexerContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory, 65536, Windows.ApplicationModel.Resources.Management.ResourceIndexerContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ResourceIndexer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
class ResourceIndexer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory, 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
/// [Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of ResourceIndexer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
class ResourceIndexer final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2), 65536, typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory), 65536, typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ResourceIndexer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
public sealed class ResourceIndexer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory2), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Resources.Management.IResourceIndexerFactory), 65536, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
[Windows.Foundation.Metadata.Deprecated("Use CreateResourceIndexer in mrmsupport.dll instead of ResourceIndexer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.ApplicationModel.Resources.Management.ResourceIndexerContract")]
public sealed class ResourceIndexer
Public NotInheritable Class ResourceIndexer
상속
Object Platform::Object IInspectable ResourceIndexer
특성

Windows 요구 사항

디바이스 패밀리
Windows Desktop Extension SDK (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.ApplicationModel.Resources.Management.ResourceIndexerContract (v1.0에서 도입되었습니다.)

설명

MakePRI에 임의 구성이 있을 수 있으므로 ResourceIndexer는 MakePRI.exe 검색된 리소스 후보의 패리티를 보장하지 않습니다.

생성자

ResourceIndexer(Uri)

프로젝트 파일의 루트를 지정하는 새 ResourceIndexer 를 만듭니다.

ResourceIndexer(Uri, Uri)

프로젝트 파일의 루트와 확장명 DLL을 지정하는 새 ResourceIndexer 를 만듭니다.

메서드

IndexFileContentsAsync(Uri)

파일 및 폴더 명명 규칙에 대한 ResW, ResJSON, PRI 또는 PRI XML 덤프 파일 경로를 인덱싱하고 파일 내용 내에 있는 리소스에 한정자를 적용합니다.

IndexFilePath(Uri)

파일 및 폴더 명명 규칙에 대한 파일 경로를 인덱싱합니다.

적용 대상