共用方式為


ResourceContext 類別

定義

封裝可能會影響資源選取的所有因素。

public ref class ResourceContext sealed
public ref class ResourceContext sealed : IResourceContext
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.Resources.MrtContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ResourceContext final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract, 65536)]
class ResourceContext final : IResourceContext
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.Resources.MrtContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ResourceContext
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.Resources.MrtCoreContract), 65536)]
public sealed class ResourceContext : IResourceContext
Public NotInheritable Class ResourceContext
Public NotInheritable Class ResourceContext
Implements IResourceContext
繼承
Object Platform::Object IInspectable ResourceContext
屬性
實作

備註

資源可能會區分縮放比例,而應用程式所擁有的不同檢視可以同時顯示在不同的顯示裝置上,這可能會使用不同的縮放比例。

除非另有說明,否則可以在任何執行緒上呼叫這個類別的方法。

屬性

QualifierValues

取得所有支援限定詞的對應,依名稱編制索引。

適用於

另請參閱