Share via


NamedResource.ResolveAll 方法

定義

多載

ResolveAll()

根據預設內容解析此 NamedResource 物件,並依喜好設定順序傳回所有可能候選項目的清單。

注意

ResolveAll 可能會在Windows 8.1之後變更或無法使用。 請改用 ResolveAll (ResourceCoNtext)

ResolveAll(ResourceContext)

針對提供的內容解析此 NamedResource 物件,並依喜好設定順序傳回所有可能候選項目的清單。

ResolveAll()

根據預設內容解析此 NamedResource 物件,並依喜好設定順序傳回所有可能候選項目的清單。

注意

ResolveAll 可能會在Windows 8.1之後變更或無法使用。 請改用 ResolveAll (ResourceCoNtext)

public:
 virtual IVectorView<ResourceCandidate ^> ^ ResolveAll() = ResolveAll;
/// [Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Overload("ResolveAll")]
IVectorView<ResourceCandidate> ResolveAll();
/// [Windows.Foundation.Metadata.Overload("ResolveAll")]
/// [Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
IVectorView<ResourceCandidate> ResolveAll();
/// [Windows.Foundation.Metadata.Overload("ResolveAll")]
IVectorView<ResourceCandidate> ResolveAll();
[Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Overload("ResolveAll")]
public IReadOnlyList<ResourceCandidate> ResolveAll();
[Windows.Foundation.Metadata.Overload("ResolveAll")]
[Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public IReadOnlyList<ResourceCandidate> ResolveAll();
[Windows.Foundation.Metadata.Overload("ResolveAll")]
public IReadOnlyList<ResourceCandidate> ResolveAll();
function resolveAll()
Public Function ResolveAll () As IReadOnlyList(Of ResourceCandidate)

傳回

依喜好設定順序排列的 ResourceCandidate 物件清單。 清單中第一個位置的物件是對應內容最適當的候選項目,而最後一個位置中的物件最不適當。

屬性

另請參閱

適用於

ResolveAll(ResourceContext)

針對提供的內容解析此 NamedResource 物件,並依喜好設定順序傳回所有可能候選項目的清單。

public:
 virtual IVectorView<ResourceCandidate ^> ^ ResolveAll(ResourceContext ^ resourceContext) = ResolveAll;
/// [Windows.Foundation.Metadata.Overload("ResolveAllForContext")]
IVectorView<ResourceCandidate> ResolveAll(ResourceContext const& resourceContext);
[Windows.Foundation.Metadata.Overload("ResolveAllForContext")]
public IReadOnlyList<ResourceCandidate> ResolveAll(ResourceContext resourceContext);
function resolveAll(resourceContext)
Public Function ResolveAll (resourceContext As ResourceContext) As IReadOnlyList(Of ResourceCandidate)

參數

resourceContext
ResourceContext

應該解析 NamedResource 的內容。

傳回

依喜好設定順序排列的 ResourceCandidate 物件清單。 清單中第一個位置的物件是對應內容最適當的候選項目,而最後一個位置中的物件最不適當。

屬性

備註

UWP app 的資源管理系統支援調整規模的資源量身打造。 從Windows 8.1開始,應用程式所擁有的不同檢視能夠同時顯示在可能使用不同的縮放比例的不同顯示裝置上。 如此一來,小數位數是每個檢視的特性。

由於 ResolveAll 方法會傳回與執行時間內容相關的 NamedResource 的所有候選項目,而且由於 ResourceCoNtext 的縮放限定詞相依于相關聯的檢視,因此一律呼叫 ResolveAll,並傳遞從將使用資源之檢視取得的 ResourceCoNtext 物件。

請參閱 ResourceCoNtext.GetForCurrentView 方法。

另請參閱

適用於