PropertyCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows property owners to control the lifetimes of the properties in the collection.
public ref class PropertyCollection
[Windows::Foundation::Metadata::WebHostHidden]
class PropertyCollection
public class PropertyCollection
type PropertyCollection = class
Public Class PropertyCollection
- Inheritance
-
PropertyCollection
Remarks
This collection is synchronized in order to allow access by multiple threads.
Constructors
PropertyCollection() |
Initializes a new instance of PropertyCollection. |
Properties
Item[Object] |
Gets or sets the Object with the specified key. |
PropertyList |
Returns the property collection as a read-only collection. |
Methods
AddProperty(Object, Object) |
Adds a new property to the collection. |
CompareExchange<T>(Object, T, T) |
Compares the entry associated with |
ContainsProperty(Object) |
Determines whether the property collection contains a property for the specified key. |
Exchange<T>(Object, T) |
Replaces the entry associated with |
GetOrCreateSingletonProperty<T>(Func<T>) |
Gets or creates a property of type |
GetOrCreateSingletonProperty<T>(Object, Func<T>) |
Gets or creates a property of type |
GetProperty(Object) |
Gets the property associated with the specified key. |
GetProperty<TProperty>(Object) |
Gets the property associated with the specified key. |
RemoveProperty(Object) |
Removes the property associated with the specified key. |
TryGetProperty<TProperty>(Object, TProperty) |
Gets the property associated with the specified key. |