Getting results from async data portal

Getting results from async data portal

Old forum URL: forums.lhotka.net/forums/t/9535.aspx


ddredstar posted on Tuesday, September 14, 2010

SearchForPosts.GetSearchForPosts("search term", (o, e) =>
  {
    if (e.Error == null && e.Object != null)
    {
      // process result
    }
  });

 

Why my e.Object always equals null???

RockfordLhotka replied on Tuesday, September 14, 2010

The answer is probably in e.Error.

The code should be more like this:

if (e.Error != null)

  // process error

else

  // process e.Object

Copyright (c) Marimer LLC