Skip to Content

MB-500: What Is the Best Practice for Extending Base Class Methods with Default Parameters in Dynamics 365?

How to Wrap Methods with Default Parameters in Dynamics 365 Using Chain of Command?

Table of Contents

Question

You are working on a Dynamics 365 s application. You need to extend a base class method but the method has a default parameter.

You need to wrap the method in an extension class without causing any errors.

You need to determine how to declare the wrapper method.

How should you do this?

Select only one answer.

A. Declare the wrapper method with the default value of the parameter
B. Declare the wrapper method with a different default value for the parameter
C. Declare the wrapper method without the parameter
D. Declare the wrapper method without including the default value of the parameter

Answer

D. Declare the wrapper method without including the default value of the parameter

Explanation

When wrapping methods that have default parameters in extension classes, the method signature in the wrapper method must not include the default value of the parameter. Including the default value, omitting the parameter, or using a different default value would cause errors.

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.