Compartir vía


AttachablePropertyServices.CopyPropertiesTo Método

Definición

Copia a una matriz de destino todos los pares propiedad-valor que se puede adjuntar de un almacén especificado de propiedades que se pueden adjuntar.

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)

Parámetros

instance
Object

Almacén específico de propiedades que se pueden adjuntar que implementa IAttachedPropertyStore, o cualquier objeto distinto de NULL para obtener acceso a un almacén predeterminado estático de propiedades que se pueden adjuntar.

array
KeyValuePair<AttachableMemberIdentifier,Object>[]

Matriz de destino. La matriz es una matriz genérica, debe pasarse sin dimensionar y debe tener componentes de AttachableMemberIdentifier y object.

index
Int32

Índice de origen en el que se va a realizar la copia.

Comentarios

Al llamar a este método se invoca una implementación subyacente CopyTo restringida con un par clave-valor, que podría ser el origen de excepciones que no se enumeran en este tema.

Se aplica a