Share via


AttachablePropertyServices.CopyPropertiesTo 方法

定义

从指定的可附加属性存储中复制所有可附加属性/值对,并将它们复制到目标数组中。

public:
 static void CopyPropertiesTo(System::Object ^ instance, cli::array <System::Collections::Generic::KeyValuePair<System::Xaml::AttachableMemberIdentifier ^, System::Object ^>> ^ array, int index);
public static void CopyPropertiesTo (object instance, System.Collections.Generic.KeyValuePair<System.Xaml.AttachableMemberIdentifier,object>[] array, int index);
static member CopyPropertiesTo : obj * System.Collections.Generic.KeyValuePair<System.Xaml.AttachableMemberIdentifier, obj>[] * int -> unit
Public Shared Sub CopyPropertiesTo (instance As Object, array As KeyValuePair(Of AttachableMemberIdentifier, Object)(), index As Integer)

参数

instance
Object

实现 IAttachedPropertyStore 的特定可附加属性存储;或者是任意不为 null 的对象,用于访问静态默认可附加属性存储。

array
KeyValuePair<AttachableMemberIdentifier,Object>[]

目标数组。 该数组为泛型数组,应以无维度方式传递,并且应具有 AttachableMemberIdentifierobject 的组件。

index
Int32

要在该处进行复制的源索引。

注解

调用此方法将调用受键/值对约束的基础 CopyTo 实现,该实现可能是本主题中未列出的异常的来源。

适用于