Condividi tramite


AttachablePropertyServices.SetProperty Metodo

Definizione

Imposta un valore per la proprietà allegabile 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à associabili specifico che implementa IAttachedPropertyStore o qualsiasi oggetto non null per utilizzare un archivio di proprietà associabili predefinito statico.

name
AttachableMemberIdentifier

Identificatore della voce della proprietà associabile per la quale impostare un valore.

value
Object

Il valore da impostare.

Eccezioni

Impossibile impostare un valore nell'archivio.

name è null.

Si applica a