nerdexam
Microsoft

MB6-704 · Question #89

You need to explicitly request permission to invoke a secured class. Which two methods should you use? Each correct answer presents part of the solution.

The correct answer is C. Assert E. Demand. Method assert: Declares that the calling code can invoke an API that is protected by a permis- Method Demand: Checks the call stack to determine whether the permission that is required to invoke an API has been granted to the calling code.

Develop X++ code

Question

You need to explicitly request permission to invoke a secured class. Which two methods should you use? Each correct answer presents part of the solution.

Options

  • ASet
  • BDefine
  • CAssert
  • DInvoke
  • EDemand

How the community answered

(41 responses)
  • A
    10% (4)
  • B
    5% (2)
  • C
    83% (34)
  • D
    2% (1)

Explanation

Method assert: Declares that the calling code can invoke an API that is protected by a permis- Method Demand: Checks the call stack to determine whether the permission that is required to invoke an API has been granted to the calling code.

Topics

#code access security#Assert#Demand#secured classes

Community Discussion

No community discussion yet for this question.

Full MB6-704 Practice