How to programmatically check whether a user has responded to a Survey or not?

Usually we use the follow SPQuery to make sure whether a user  has given a answer to our surveys:

Here we suppose you run these code in the administrator's role:

 

Code

 

你可能感兴趣的:(check)