Represents notification to deinitialize event hooks (unhook events) for components which is not supported. The supported components are
MenuItem,
Button and
ToolBarButton. Should be overided and result should be true.
Syntax
Visual Basic (Declaration) |
|
Protected Overridable Function DoDetach() As Boolean |
Visual Basic (Usage) |
Copy Code |
Dim instance As CommandUI
Dim value As Boolean
value = instance.DoDetach()
|
C# |
|
protected virtual bool DoDetach() |
Return Value
Returns true if event detachments are successful
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also