Export (0) Print
Expand All

AttachablePropertyServices.CopyPropertiesTo Method

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
)

Parameters

instance
Type: System.Object

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

array
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.

index
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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft