ResourceContext.CreateMatchingContext 方法

定义

创建与提供的一组限定符匹配的新 ResourceContext

注意

CreateMatchingContext 可能会在Windows 8.1后更改或不可用。 请改用 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

参数

result

IIterable<ResourceQualifier>

IEnumerable<ResourceQualifier>

要匹配的限定符列表。

返回

新的 ResourceContext

属性

适用于