共用方式為


DataObject.RemovePastingHandler 方法

定義

從所指定相依性物件中移除 Pasting 事件處理常式。

public:
 static void RemovePastingHandler(System::Windows::DependencyObject ^ element, System::Windows::DataObjectPastingEventHandler ^ handler);
public static void RemovePastingHandler (System.Windows.DependencyObject element, System.Windows.DataObjectPastingEventHandler handler);
static member RemovePastingHandler : System.Windows.DependencyObject * System.Windows.DataObjectPastingEventHandler -> unit
Public Shared Sub RemovePastingHandler (element As DependencyObject, handler As DataObjectPastingEventHandler)

參數

element
DependencyObject

要從中移除事件處理常式的相依性物件 (UIElementContentElement)。

handler
DataObjectPastingEventHandler

委派,參考處理常式方法以移除。

適用於

另請參閱