次の方法で共有


AttachablePropertyServices.SetProperty メソッド

定義

指定されたストアの指定されたアタッチ可能なプロパティの値を設定します。

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)

パラメーター

instance
Object

IAttachedPropertyStore を実装する特定のアタッチ可能なプロパティ ストア、または静的な既定のアタッチ可能なプロパティ ストアを使用する任意の null でないオブジェクト。

name
AttachableMemberIdentifier

値の設定対象となるアタッチ可能なプロパティ エントリの識別子。

value
Object

設定する値。

例外

ストア内の値を設定できませんでした。

namenullです。

適用対象