Lingua

AttachablePropertyServices.SetProperty Metodo

Definizione

Imposta un valore per la proprietà associabile specificata nell'archivio specificato.

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)

Parametri

instance
Object

Archivio di proprietà associabile specifico che implementa IAttachedPropertyStoreo qualsiasi oggetto non Null per l'uso di un archivio proprietà associabile predefinito statico.

name
AttachableMemberIdentifier

Identificatore della voce della proprietà associabile per cui impostare un valore.

value
Object

Il valore da impostare.

Eccezioni

Impossibile impostare un valore nell'archivio.

name è null.

Si applica a