이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

PropertySet Class

속성 집합을 나타냅니다.

구문


public sealed class PropertySet : Object,
    IPropertySet,
    IObservableMap<String, Object>,
    IDictionary<String, Object>,
    IEnumerable<KeyValuePair>

특성

ActivatableAttribute(NTDDI_WIN8)
DualApiPartitionAttribute()
MarshalingBehaviorAttribute(Agile)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)

구성원

PropertySet클래스에는 다음과 같은 유형의 구성원이 있습니다.

생성자

PropertySet클래스에는 다음 생성자가 있습니다.

생성자설명
PropertySet Creates and initializes a new instance of the property set.

 

이벤트

PropertySet클래스에는 다음 이벤트가 있습니다.

이벤트설명
MapChanged Occurs when the observable map has changed.

 

메서드

The PropertySet 클래스 다음 메서드가 있습니다. C#, Visual Basic 및 C++에서는 다음에서 메서드를 상속합니다. Object 클래스.

메서드설명
Add(KeyValuePair) Adds a new key-value pair to the PropertySet.
Add(String) Adds an item to the PropertySet.
Clear Removes all items from the property set.
Contains Returns a value that indicates whether a specified key-value pair exists in the PropertySet.
ContainsKey Returns a value that indicates whether a specified key exists in the PropertySet.
CopyTo Copies the elements of the collection to an array, starting at a particular array index.
First Returns an iterator to enumerate the items in the property set.
GetView Gets an immutable view of the property set.
HasKey Indicates whether the property set has an item with the specified key.
Insert Adds an item to the property set.
Lookup Retrieves the value for the specified key.
Remove Removes an item from the property set.
Remove(KeyValuePair) Removes a specific key-value pair from the PropertySet.
Remove(String) Removes a specific item from the PropertySet.
TryGetValue Returns a value that indicates whether a specified key exists in the PropertySet. If an item with that key exists, the item is retrieved as an out parameter.

 

속성

PropertySet클래스 다음 속성이 있습니다.

속성액세스 유형설명

Count

읽기 전용Gets the number of elements contained in the collection.

IsReadOnly

읽기 전용Gets a value indicating whether the dictionary is read-only.

Item

읽기/쓰기Gets or sets the element value at the specified key index.

Keys

읽기 전용Gets an ICollection object containing the keys of the PropertySet.

Size

읽기 전용Gets the number of items contained in the property set.

Values

읽기 전용Gets an ICollection object containing the values of the PropertySet .

 

설명

String 형식의 키와 PropertyValue 형식의 값으로 맵을 구현합니다.

컬렉션 멤버 목록

JavaScript의 경우 PropertySet은 인덱스를 사용하여 항목을 액세스할 수 있도록 지원합니다.

요구 사항

지원되는 최소 클라이언트

Windows 8 [Windows 스토어 앱, 데스크톱 앱]

지원되는 최소 서버

Windows Server 2012 [Windows 스토어 앱, 데스크톱 앱]

지원되는 최소 전화

Windows Phone 8

네임스페이스

Windows.Foundation.Collections
Windows::Foundation::Collections [C++]

메타데이터

Windows.winmd

DLL

Windows.Foundation.dll

참고 항목

Windows.Foundation.PropertyValue

 

 

이 정보가 도움이 되었습니까?
(1500자 남음)
© 2013 Microsoft. All rights reserved.