EventBindingService.RemoveHandle Method
When overridden in a derived class, requests that a specific method stop handling a specific event by removing it from a Handles clause.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function RemoveHandle ( _
modelEvent As ModelEvent, _
methodName As String _
) As Boolean
public abstract bool RemoveHandle(
ModelEvent modelEvent,
string methodName
)
public:
virtual bool RemoveHandle(
ModelEvent^ modelEvent,
String^ methodName
) abstract
abstract RemoveHandle :
modelEvent:ModelEvent *
methodName:string -> bool
public abstract function RemoveHandle(
modelEvent : ModelEvent,
methodName : String
) : boolean
Parameters
- modelEvent
Type: Microsoft.Windows.Design.Model.ModelEvent
The event to stop methodName from handling.
- methodName
Type: System.String
The method to stop handling modelEvent.
Return Value
Type: System.Boolean
true if the event can be successfully removed from the method declaration in the code-behind file; otherwise, false.
Remarks
In C#, this method always returns false. In Visual Basic, this means that the event is removed from the Handles clause of the method, if applicable.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Services Namespace