Can You Wrap a Method Marked as [Hookable(false)] in Dynamics 365 Extensions?
Table of Contents
Question
You are working on a Dynamics 365 application. You need to extend a base class method but the method is marked as [Hookable(false)].
You need to understand how this attribute affects your ability to wrap the method.
You need to determine if you can wrap the method in an extension class.
Can you do this?
Select only one answer.
A. No
B. Yes
C. Only if the method is also marked as Wrappable(true)
D. Only if the method is not final
Answer
A. No
Explanation
If a method is explicitly marked as [Hookable(false)], the method can’t be wrapped in an extension class. The Wrappable attribute and whether the method is final do not affect this restriction.
Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 exam and earn Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 certification.