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 實作,這可能是本主題中未列出的例外狀況來源。

適用於