AttachablePropertyServices.RemoveProperty 方法

定義

從指定的存放區中,移除指定之可附加屬性的項目。

public:
 static bool RemoveProperty(System::Object ^ instance, System::Xaml::AttachableMemberIdentifier ^ name);
public static bool RemoveProperty (object instance, System.Xaml.AttachableMemberIdentifier name);
static member RemoveProperty : obj * System.Xaml.AttachableMemberIdentifier -> bool
Public Shared Function RemoveProperty (instance As Object, name As AttachableMemberIdentifier) As Boolean

參數

instance
Object

實作 IAttachedPropertyStore 的特定可附加屬性存放區,或任何要存取靜態預設可附加屬性存放區的非 null 物件。

name
AttachableMemberIdentifier

要從存放區移除之可附加屬性項目的識別項。

傳回

如果已在存放區中找到並移除 name 的可附加屬性項目,則為 true,否則為 false

備註

每個實例都有存放區;因此,在存放區中, name 值應該明確。

適用於