Bewerken

Delen via


AttachablePropertyServices.SetProperty Method

Definition

Sets a value for the specified attachable property in the specified store.

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)

Parameters

instance
Object

A specific attachable property store that implements IAttachedPropertyStore; or any non-null object to use a static default attachable property store.

name
AttachableMemberIdentifier

The identifier of the attachable property entry for which to set a value.

value
Object

The value to set.

Exceptions

A value could not be set in the store.

name is null.

Applies to