web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Final keyword in CoC

(0) ShareShare
ReportReport
Posted on by 30

Hi

Why final keyword used in Chain of command?

CoC used to wrapping the method.  Let me know what is the meaning of wrapping here?

Please give me more shed on this 

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    Hi @rp@n,

    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

    I think you need to read Microsoft Doc carefully :https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc

  • @rp@n Profile Picture
    30 on at

    Thanks Bule

    Actually I read this doc before also. Just want to know

    Why final keyword is using? And what mean by wrapping here

  • Verified answer
    Blue Wang Profile Picture
    on at

    Hi @rp@n,

    For  ”Why final keyword is using?"

    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.

    For "what mean by wrapping?“

    When you wrap a method, you can also access public and protected methods, and variables of the base class. In this way, you can start transactions and easily manage state variables that are associated with your class.

  • @rp@n Profile Picture
    30 on at

    Thanks blue

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans