IndexedResourceCandidate IndexedResourceCandidate IndexedResourceCandidate IndexedResourceCandidate Class

Definition

Represents a single possible value for a given resource, and the qualifiers associated with that resource.

Important

You can't use this class in a Windows Store app.

public : sealed class IndexedResourceCandidate : IIndexedResourceCandidatepublic sealed class IndexedResourceCandidate : IIndexedResourceCandidatePublic NotInheritable Class IndexedResourceCandidate Implements IIndexedResourceCandidate// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.ApplicationModel.Resources.Management.ResourceIndexerContract (introduced v1)

Properties

Metadata Metadata Metadata Metadata

Gets the list of metadata name value pairs.

public : IMapView<string, string> Metadata { get; }public IReadOnlyDictionary<string, string> Metadata { get; }Public ReadOnly Property Metadata As IReadOnlyDictionary<string, string>// This API is not available in Javascript.
Value
IMapView<PlatForm::String, PlatForm::String> IReadOnlyDictionary<string, string> IReadOnlyDictionary<string, string> IReadOnlyDictionary<string, string>

A list of string pairs, each containing the name of an IndexedResourceQualifier and its value.

Qualifiers Qualifiers Qualifiers Qualifiers

Gets the list of IndexedResourceQualifier s.

public : IVectorView<IndexedResourceQualifier> Qualifiers { get; }public IReadOnlyList<IndexedResourceQualifier> Qualifiers { get; }Public ReadOnly Property Qualifiers As IReadOnlyList<IndexedResourceQualifier>// This API is not available in Javascript.
Value
IVectorView<IndexedResourceQualifier> IReadOnlyList<IndexedResourceQualifier> IReadOnlyList<IndexedResourceQualifier> IReadOnlyList<IndexedResourceQualifier>

A list of IndexedResourceQualifier s.

Type Type Type Type

Gets the type property that determines whether the resource is a file or a string.

public : IndexedResourceType Type { get; }public IndexedResourceType Type { get; }Public ReadOnly Property Type As IndexedResourceType// This API is not available in Javascript.

Uri Uri Uri Uri

Gets the named resource Uri.

public : Uri Uri { get; }public Uri Uri { get; }Public ReadOnly Property Uri As Uri// This API is not available in Javascript.
Value
Uri Uri Uri Uri

The named resource Uri.

Remarks

Uri is an ms-resource: URI representing the named resource for the candidate, where the authority of the URI or the resource map is empty (for example, ms-resource:///Resources/String1 or ms-resource:///Files/images/logo.png).

ValueAsString ValueAsString ValueAsString ValueAsString

Gets the value of the candidate as a String.

public : PlatForm::String ValueAsString { get; }public string ValueAsString { get; }Public ReadOnly Property ValueAsString As string// This API is not available in Javascript.
Value
PlatForm::String string string string

If the candidate is a file, the value is a file path (such as "images\logo.scale-100.png") relative to the project root passed to the ResourceIndexer constructor. If the candidate is a string, the value is the actual string (such as "Hello World").

Methods

GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String)

Returns the value of a qualifier, given its name.

public : PlatForm::String GetQualifierValue(PlatForm::String qualifierName)public string GetQualifierValue(String qualifierName)Public Function GetQualifierValue(qualifierName As String) As string// This API is not available in Javascript.
Parameters
qualifierName
PlatForm::String String String String

The name of the qualifier.

Returns
PlatForm::String string string string

The value of the qualifier.