Share via


ResourceContext.CreateMatchingContext Method

Definition

Creates a new ResourceContext that matches a supplied set of qualifiers.

Note

CreateMatchingContext may be altered or unavailable for releases after Windows 8.1. Instead, use ResourceContext.GetForCurrentView.OverrideToMatch.

public:
 static ResourceContext ^ CreateMatchingContext(IIterable<ResourceQualifier ^> ^ result);
/// [Windows.Foundation.Metadata.Deprecated("CreateMatchingContext may be altered or unavailable for releases after Windows 8.1. Instead, use ResourceContext.GetForCurrentView.OverrideToMatch.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
 static ResourceContext CreateMatchingContext(IIterable<ResourceQualifier> const& result);
/// [Windows.Foundation.Metadata.Deprecated("CreateMatchingContext may be altered or unavailable for releases after Windows 8.1. Instead, use ResourceContext.GetForCurrentView.OverrideToMatch.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
 static ResourceContext CreateMatchingContext(IIterable<ResourceQualifier> const& result);
 static ResourceContext CreateMatchingContext(IIterable<ResourceQualifier> const& result);
[Windows.Foundation.Metadata.Deprecated("CreateMatchingContext may be altered or unavailable for releases after Windows 8.1. Instead, use ResourceContext.GetForCurrentView.OverrideToMatch.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static ResourceContext CreateMatchingContext(IEnumerable<ResourceQualifier> result);
[Windows.Foundation.Metadata.Deprecated("CreateMatchingContext may be altered or unavailable for releases after Windows 8.1. Instead, use ResourceContext.GetForCurrentView.OverrideToMatch.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static ResourceContext CreateMatchingContext(IEnumerable<ResourceQualifier> result);
public static ResourceContext CreateMatchingContext(IEnumerable<ResourceQualifier> result);
function createMatchingContext(result)
Public Shared Function CreateMatchingContext (result As IEnumerable(Of ResourceQualifier)) As ResourceContext

Parameters

result

IIterable<ResourceQualifier>

IEnumerable<ResourceQualifier>

The list of qualifiers to be matched.

Returns

The new ResourceContext.

Attributes

Applies to