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

要移除的引用处理程序方法的委托。

适用于

另请参阅