exam questions

Exam MB-500 All Questions

View all questions & answers for the MB-500 exam

Exam MB-500 topic 3 question 37 discussion

Actual exam question from Microsoft's MB-500
Question #: 37
Topic #: 3
[All MB-500 Questions]

DRAG DROP -
You are creating a new class and adding methods to the class.
You need to control extensibility capabilities of some of the methods in the class.
Which attribute should you use? To answer, drag the appropriate attributes to the correct requirements. Each attribute may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: [Hookable(true)]
If a method is hookable, extenders can subscribe to pre-events and post-events.
For public methods, you can opt out by adding [Hookable(false)] to the method.
You can opt in for private and protected methods by adding [Hookable(true)] to the method.
If a method is explicitly marked as [Hookable(false)], then it is not wrappable.
Box 2: [Wrappable(false)]
If a method is wrappable, extenders can wrap it by using Chain of Command (CoC). Extenders must call next, because they aren't allowed to break the CoC.
For protected and public methods, you can opt out by adding [Wrappable(false)] to the method.
Box 3: [Replaceable]
If a method is replaceable, extenders can wrap it by using CoC, but they don't have to unconditionally call next. Although extenders can break the CoC, the expectation is that they will only conditionally break it. The compiler doesn't enforce calls to next.
To be replaceable, a method must also be wrappable.
For wrappable methods, you can opt in by adding [Replaceable] to the method.
Reference:
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/extensibility-attributes

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
abhig535
3 months ago
Correct 1) [Hookable(true)] If a method is hookable, extenders can subscribe to pre-events and post-events. 2) [Wrappable(false)] If a method is wrappable, extenders can wrap it by using Chain of Command (CoC). Extenders must call next, because they aren't allowed to break the CoC. 3) [Replaceable] If a method is replaceable, extenders can wrap it by using CoC, but they don't have to unconditionally call next. https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/extensibility-attributes
upvoted 1 times
...
theCoder1
11 months, 2 weeks ago
hookable not hooktable and option correct answer [hookable(false)] If a method is explicitly marked as [Hookable(false)], then it is not wrappable. look this url https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/extensibility-attributes If a method is explicitly marked as [Hookable(false)], then it is not wrappable.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...