共用方式為


EventBindingService.RemoveHandlesForName 方法

移除所指定項目的事件處理常式。

命名空間:  Microsoft.Windows.Design.Services
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Overridable Function RemoveHandlesForName ( _
    elementName As String _
) As Boolean
public virtual bool RemoveHandlesForName(
    string elementName
)
public:
virtual bool RemoveHandlesForName(
    String^ elementName
)
abstract RemoveHandlesForName : 
        elementName:string -> bool 
override RemoveHandlesForName : 
        elementName:string -> bool 
public function RemoveHandlesForName(
    elementName : String
) : boolean

參數

  • elementName
    型別:System.String
    要從其中移除事件處理常式的項目。

傳回值

型別:System.Boolean
如果已移除事件處理常式則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

EventBindingService 類別

Microsoft.Windows.Design.Services 命名空間

其他資源

WPF 設計工具擴充性架構