ValueSet 클래스

정의

문자열 형식의 키와 개체 형식의 값을 사용하여 맵을 구현 합니다. 개체는 WinRT PropertyValue 또는 ValueSet이어야 합니다. PropertyValue는 PropertyType InspectableArray 를 제외한 모든 형식일 수 있습니다. 이 제한은 값을 serialize할 수 있도록 하기 위해 존재합니다. 값으로 전달하면 프로세스 경계가 발생합니다.

참고

일부 멤버는 지정된 언어에 대해서만 사용할 수 있습니다.

public ref class ValueSet sealed : IIterable<IKeyValuePair<Platform::String ^, Platform::Object ^> ^>, IMap<Platform::String ^, Platform::Object ^>, IObservableMap<Platform::String ^, Platform::Object ^>, IPropertySet
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.FoundationContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ValueSet final : IIterable<IKeyValuePair<winrt::hstring, IInspectable const&>>, IMap<winrt::hstring, IInspectable const&>, IObservableMap<winrt::hstring, IInspectable const&>, IPropertySet
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.FoundationContract")]
class ValueSet final : IIterable<IKeyValuePair<winrt::hstring, IInspectable const&>>, IMap<winrt::hstring, IInspectable const&>, IObservableMap<winrt::hstring, IInspectable const&>, IPropertySet
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.FoundationContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ValueSet : IDictionary<string,object>, IEnumerable<KeyValuePair<string,object>>, IObservableMap<string,object>, IPropertySet
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.FoundationContract")]
public sealed class ValueSet : IDictionary<string,object>, IEnumerable<KeyValuePair<string,object>>, IObservableMap<string,object>, IPropertySet
function ValueSet()
Public NotInheritable Class ValueSet
Implements IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IObservableMap(Of String, Object), IPropertySet
상속
Object IInspectable ValueSet
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.FoundationContract (v1.0에서 도입되었습니다.)

생성자

ValueSet()

속성 집합의 새 인스턴스를 만들고 초기화합니다.

속성

Size

값 집합에 포함된 항목 수를 가져옵니다.

메서드

Clear()

값 집합에서 모든 항목을 제거합니다.

First()

값 집합의 항목을 열거하는 반복기를 반환합니다.

GetView()

값 집합의 변경할 수 없는 보기를 가져옵니다.

HasKey(String)

값 집합에 지정된 키가 있는 항목이 있는지 여부를 나타냅니다.

Insert(String, Object)

값 집합에 항목을 추가합니다.

Lookup(String)

지정된 키의 값을 검색합니다.

Remove(String)

값 집합에서 항목을 제거합니다.

이벤트

MapChanged

관찰 가능한 맵이 변경된 경우에 발생합니다.

적용 대상

추가 정보