Free MB-500 Exam Braindumps (page: 22)

Page 21 of 66
View Related Case Study

You are a Dynamics 365 Finance developer.
You need to create an extension class.
Which action should you perform?

  1. Mark the class as final.
  2. Add the class buffer as the first parameter.
  3. Add the suffix .extension to the file name.
  4. Add the suffix _myextension to the file name.

Answer(s): A

Explanation:

Extension classes are final classes that are adorned with the ExtensionOf attribute and that also have a name that has the _Extension suffix.
Because the classes are instantiated by the runtime system, it's not meaningful to derive from the extension class. Therefore, the extension class must be marked as final.


Reference:

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc



View Related Case Study

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an enumeration named truckStatus that has the following statuses:

-Empty
-Loaded
-Completed

You have the following code:

You need to extend this enumeration and add the following statuses to the enumeration: Quarantine, InTransit. You must then modify code that validates the switch statement.

Solution: Add a post handler to the method that checks the enumeration and logic for your new enumeration values using a range comparison for your new values.



Does the solution meet the goal?

  1. Yes
  2. No

Answer(s): B



View Related Case Study

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an enumeration named truckStatus that has the following statuses:
-Empty
-Loaded
-Completed

You have the following code:



You need to extend this enumeration and add the following statuses to the enumeration: Quarantine, InTransit. You must then modify code that validates the switch statement.

Solution: Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the integer value of the enumeration.



Does the solution meet the goal?

  1. Yes
  2. No

Answer(s): B



View Related Case Study

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an enumeration named truckStatus that has the following statuses: Empty
Loaded Completed

You have the following code:


You need to extend this enumeration and add the following statuses to the enumeration: Quarantine, InTransit. You must then modify code that validates the switch statement.

Solution: Add a post handler to the method that checks the enumeration and logic for your new enumeration values using the enumeration value.



Does the solution meet the goal?

  1. Yes
  2. No

Answer(s): A






Post your Comments and Discuss Microsoft MB-500 exam with other Community members:

MB-500 Exam Discussions & Posts