AttachablePropertyServices.CopyPropertiesTo Method (Object, KeyValuePair<AttachableMemberIdentifier, Object>[], Int32)

.NET Framework (current version)

Copies all attachable property/value pairs from a specified attachable property store and into a destination array.

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

public static void CopyPropertiesTo(
	object instance,
	KeyValuePair<AttachableMemberIdentifier, object>[] array,
	int index


Type: System.Object

A specific attachable property store that implements IAttachedPropertyStore; or any non-null object to access a static default attachable property store.

Type: System.Collections.Generic.KeyValuePair<AttachableMemberIdentifier, Object>[]

The destination array. The array is a generic array, should be passed undimensioned, and should have components of AttachableMemberIdentifier and object.

Type: System.Int32

The source index into which to copy.

Calling this method invokes an underlying CopyTo implementation that is constrained with a key/value pair, which might be the source of exceptions that are not listed in this topic.

.NET Framework
Available since 4.0
Return to top