nerdexam
Microsoft

MB6-704 · Question #25

You have a class named Classl that has a public method named methodl. For method1,you plan to create an event handler that is defined in the Application Object Tree (AOT). For the event handler, you…

The correct answer is B. A static method on a class. All event handlers that subscribe to a method must return void. Event handlers for host methods can use one of two parameter signatures: One parameter of the type XppPrePostArgs The same parameters that are on the host method that the event handler subscribes to The following…

Develop Application Objects

Question

You have a class named Classl that has a public method named methodl. For method1,you plan to create an event handler that is defined in the Application Object Tree (AOT). For the event handler, you need to develop code that runs after methodl executes. What should you use to define the code for the event handler?

Options

  • AA display method on a table
  • BA static method on a class
  • CThe new method on a class.
  • DA public instance method on a class

How the community answered

(31 responses)
  • A
    10% (3)
  • B
    81% (25)
  • C
    3% (1)
  • D
    6% (2)

Explanation

All event handlers that subscribe to a method must return void. Event handlers for host methods can use one of two parameter signatures: One parameter of the type XppPrePostArgs The same parameters that are on the host method that the event handler subscribes to The following code shows an example of an event handler that has the XppPrePostArgs class as the static public void myEventHandler(XppPrePostArgs _ppArgs) { // Add useful code here. * In the AOT, you can assign a method as an event handler for the pre-method event or the post- method event of another method. We say the event handler subscribes to an event of the host The nodes that represent the subscription of an event handler to a host method are underneath the node for the host method. AOT elements such as classes, tables, and forms can have * You can subscribe methods as event handlers in two locations in the Application Object Tree Under a delegate node Under a method node

Topics

#event handler#AOT#post-event#static method

Community Discussion

No community discussion yet for this question.

Full MB6-704 Practice