IndexedResourceCandidate 类

定义

表示给定资源的单个可能值以及与该资源关联的限定符。

重要

不能在 UWP 应用中使用此类。

public ref class IndexedResourceCandidate sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class IndexedResourceCandidate final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Resources.Management.ResourceIndexerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class IndexedResourceCandidate
Public NotInheritable Class IndexedResourceCandidate
继承
Object Platform::Object IInspectable IndexedResourceCandidate
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.ApplicationModel.Resources.Management.ResourceIndexerContract (在 v1.0 中引入)

属性

Metadata

获取元数据名称值对的列表。

Qualifiers

获取 IndexedResourceQualifier 的列表。

Type

获取类型属性,该属性确定资源是文件还是字符串。

Uri

获取命名的资源 URI

ValueAsString

获取 字符串形式的候选项的值。

方法

GetQualifierValue(String)

返回限定符的值,给定其名称。

适用于