Lenguaje

AttachablePropertyServices.SetProperty Método

Definición

Establece un valor para la propiedad adjunta especificada en el almacén especificado.

public:
 static void SetProperty(System::Object ^ instance, System::Xaml::AttachableMemberIdentifier ^ name, System::Object ^ value);
public static void SetProperty(object instance, System.Xaml.AttachableMemberIdentifier name, object value);
static member SetProperty : obj * System.Xaml.AttachableMemberIdentifier * obj -> unit
Public Shared Sub SetProperty (instance As Object, name As AttachableMemberIdentifier, value As Object)

Parámetros

instance
Object

Almacén de propiedades adjuntables específico que implementa IAttachedPropertyStore; o cualquier objeto que no sea NULL para usar un almacén de propiedades adjuntables estático.

name
AttachableMemberIdentifier

Identificador de la entrada de propiedad adjunta para la que se va a establecer un valor.

value
Object

El valor que se va a establecer.

Excepciones

No se pudo establecer un valor en el almacén.

name es null.

Se aplica a