Compartilhar via


ResourceContext.CreateMatchingContext Método

Definição

Cria um novo ResourceContext que corresponde a um conjunto fornecido de qualificadores.

Observação

CreateMatchingContext pode ser alterado ou indisponível para versões após Windows 8.1. Em vez disso, 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

Parâmetros

result

IIterable<ResourceQualifier>

IEnumerable<ResourceQualifier>

A lista de qualificadores a serem correspondidos.

Retornos

O novo ResourceContext.

Atributos

Aplica-se a