ApplicationDataContainerSettings クラス

定義

設定コンテナー内の設定へのアクセスを提供します。 ApplicationDataContainer.Values プロパティは、この型にキャストできるオブジェクトを返します。

public ref class ApplicationDataContainerSettings sealed : IIterable<IKeyValuePair<Platform::String ^, Platform::Object ^> ^>, IMap<Platform::String ^, Platform::Object ^>, IObservableMap<Platform::String ^, Platform::Object ^>, IPropertySet
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ApplicationDataContainerSettings final : IIterable<IKeyValuePair<winrt::hstring, IInspectable const&>>, IMap<winrt::hstring, IInspectable const&>, IObservableMap<winrt::hstring, IInspectable const&>, IPropertySet
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ApplicationDataContainerSettings : IDictionary<string,object>, IEnumerable<KeyValuePair<string,object>>, IObservableMap<string,object>, IPropertySet
Public NotInheritable Class ApplicationDataContainerSettings
Implements IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IObservableMap(Of String, Object), IPropertySet
継承
Object Platform::Object IInspectable ApplicationDataContainerSettings
属性
実装
IMap<K,V> IDictionary<K,V> IDictionary<String,Object> IMap<Platform::String,Platform::Object> IMap<winrt::hstring,IInspectable> IIterable<IKeyValuePair<K,V>> IEnumerable<KeyValuePair<K,V>> IEnumerable<KeyValuePair<String,Object>> IIterable<IKeyValuePair<Platform::String,Platform::Object>> IIterable<IKeyValuePair<winrt::hstring,IInspectable>> IObservableMap<String,Object> IObservableMap<Platform::String,Platform::Object> IObservableMap<winrt::hstring,IInspectable> IPropertySet

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

アプリのローカル設定を取得するには、次の操作を行います。 これらの手順は、 LocalSettings の例で示されています。

  1. 静的な ApplicationData.Current プロパティの値を取得します。 このプロパティは、 ApplicationData 型のデータ ストアを返します。
  2. データ ストアの LocalSettings プロパティの値を取得します。 このプロパティは、 ApplicationDataContainer 型のデータ コンテナーを返します。
  3. データ コンテナーの Values プロパティを読み取ります。 このプロパティは、ApplicationDataContainerSettings 型にキャストできる IPropertySet 型の設定のグループを返します。

コレクション メンバー リスト

JavaScript の場合、ApplicationDataContainerSettings ではインデックスを使用して項目にアクセスできます。

プロパティ

Size

関連するアプリケーション設定の数を取得します。

メソッド

Clear()

関連するすべてのアプリケーション設定を削除します。

First()

設定コンテナー内の設定を列挙する反復子を取得します。

GetView()

設定コンテナーの内容の読み取り専用スナップショットを返します。

HasKey(String)

指定したキーを持つアプリケーション設定があるかどうかを判断します。

Insert(String, Object)

アプリケーション設定を挿入または置換します。

Lookup(String)

指定したアプリケーション設定を取得します。

Remove(String)

指定したアプリケーション設定を削除します。

イベント

MapChanged

マップが変更されたときに発生します。

適用対象

こちらもご覧ください