locked
SendOrPostCallback Delegate RRS feed

  • Question

  • I'm studying for the 70-536 exam and this delegate is on the exam. Can someone eleborate on this delegate? Post an example? Thank you
    Tuesday, September 23, 2008 11:15 PM

Answers

  • This delegate type is used by an "advanced" threading functionality -- the SynchronizationContext.

    See here:  http://www.codeproject.com/KB/cpp/SyncContextTutorial.aspx
    • Marked as answer by Zhi-Xin Ye Monday, September 29, 2008 7:35 AM
    Wednesday, September 24, 2008 1:24 AM
  •   hi,

     Let me try to put it in as described in Microsoft Book.
    A delegate is a class tht can hold a reference to a method.A delegate class has a signature and it can hold reference to a method tht matches with the signature.

    Example:

    public delegate void AlarmEventHandler(object sender, EventArgs e);

    Delegates have many use but paper - 536 mainly focus on event handling part of delegates. For any detail refer to Microsoft self training book that will really give you a broader idea.



    Thanks
    Avi


    ;-) Cheers
    • Marked as answer by Zhi-Xin Ye Monday, September 29, 2008 7:35 AM
    Wednesday, September 24, 2008 8:09 AM

All replies

  • This delegate type is used by an "advanced" threading functionality -- the SynchronizationContext.

    See here:  http://www.codeproject.com/KB/cpp/SyncContextTutorial.aspx
    • Marked as answer by Zhi-Xin Ye Monday, September 29, 2008 7:35 AM
    Wednesday, September 24, 2008 1:24 AM
  •   hi,

     Let me try to put it in as described in Microsoft Book.
    A delegate is a class tht can hold a reference to a method.A delegate class has a signature and it can hold reference to a method tht matches with the signature.

    Example:

    public delegate void AlarmEventHandler(object sender, EventArgs e);

    Delegates have many use but paper - 536 mainly focus on event handling part of delegates. For any detail refer to Microsoft self training book that will really give you a broader idea.



    Thanks
    Avi


    ;-) Cheers
    • Marked as answer by Zhi-Xin Ye Monday, September 29, 2008 7:35 AM
    Wednesday, September 24, 2008 8:09 AM