IAttachedPropertyStore Interface

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents an attachable member store for an object where attachable members are set. This attachable member store can then be referenced with AttachablePropertyServices.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public interface IAttachedPropertyStore


Gets the count of the attachable member entries in this attachable member store.

System_CAPS_pubmethodCopyPropertiesTo(KeyValuePair<AttachableMemberIdentifier, Object>[], Int32)

Copies all attachable member/value pairs from this attachable member store into a destination array.


Removes the entry for the specified attachable member from this attachable member store.

System_CAPS_pubmethodSetProperty(AttachableMemberIdentifier, Object)

Sets a value for the specified attachable member in the specified store.

System_CAPS_pubmethodTryGetProperty(AttachableMemberIdentifier, Object)

Attempts to get a value for the specified attachable member in the specified store.

An attachable member is typically implemented and used as an attachable property. The term "attachable member" provides for the possibility that a technology also defines a system for attachable events. As an item in a property store, an attachable event stores a reference to the handler that is assigned through attachable member usage. An attachable event in XAML can use the same store as the attachable properties do, even if the attachable event is not truly a property to the underlying type system or as it is considered in real-world use.

.NET Framework
Available since 4.0
Return to top