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클래스 다음 속성이 있습니다.
| 속성 | 액세스 유형 | 설명 |
|---|---|---|
| 읽기 전용 | Gets the number of elements contained in the collection. | |
| 읽기 전용 | Gets a value indicating whether the dictionary is read-only. | |
| 읽기/쓰기 | Gets or sets the element value at the specified key index. | |
| 읽기 전용 | Gets an ICollection object containing the keys of the PropertySet. | |
| 읽기 전용 | Gets the number of items contained in the property set. | |
| 읽기 전용 | Gets an ICollection object containing the values of the PropertySet . |
설명
String 형식의 키와 PropertyValue 형식의 값으로 맵을 구현합니다.
컬렉션 멤버 목록
JavaScript의 경우 PropertySet은 인덱스를 사용하여 항목을 액세스할 수 있도록 지원합니다.
요구 사항
|
지원되는 최소 클라이언트 | Windows 8 [Windows 스토어 앱, 데스크톱 앱] |
|---|---|
|
지원되는 최소 서버 | Windows Server 2012 [Windows 스토어 앱, 데스크톱 앱] |
|
지원되는 최소 전화 | Windows Phone 8 |
|
네임스페이스 |
|
|
메타데이터 |
|
|
DLL |
|
참고 항목