Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.41 KB

resourcequalifier_ismatch.md

File metadata and controls

27 lines (18 loc) · 1.41 KB
-api-id -api-type
P:Windows.ApplicationModel.Resources.Core.ResourceQualifier.IsMatch
winrt property

Windows.ApplicationModel.Resources.Core.ResourceQualifier.IsMatch

-description

Indicates whether a given qualifier for a given candidate matched the context when a named resource is resolved to a candidate for some given context.

-property-value

true if this qualifier matched the environment against which it was evaluated; otherwise, false.

-remarks

If a ResourceQualifier is obtained in a scenario that does not involve resolving a named resource for some context, the value is false. (For example, when all candidates are enumerated for a named resource and their qualifiers are inspected.)

After resolving a named resource for some context, IsMatch is true if the qualifier matches the context on a non-default basis (that is, the qualifier value is not designated as the default value for that qualifier). The score is non-zero, and IsDefault is false.

After resolving a named resource for some context, IsMatch is false if the qualifier does not match the context on a non-default basis. (The qualifier value may or may not be the default value for that qualifier. The score may or may not be zero, according to whether the qualifier is the default value.)

-examples

-see-also