共用方式為


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 s 的清單。

Type

取得型別屬性,這個屬性會決定資源是檔案還是字串。

Uri

取得具名資源 URI

ValueAsString

取得候選項目的值做為 String

方法

GetQualifierValue(String)

傳回限定詞的值,指定其名稱。

適用於