locked
Head Collector RRS feed

  • Question


  • How can i create SPUserCollection of SPUser elements ?
    Monday, October 25, 2010 2:18 PM

Answers

  • What do you need the Collection for? if its something you need to store user information for use in your code (as a temporary storage), I would suggest creating your own collection and using it.

    If its something that is needed for future references, then create a Group in your site and add the users to it.

    Does that answer your question?

    • Marked as answer by Porter Wang Wednesday, November 3, 2010 10:50 AM
    • Edited by Mike Walsh FIN Wednesday, November 3, 2010 1:02 PM sig removed - don't ask people to mark your posts
    Monday, October 25, 2010 5:39 PM

All replies

  • What do you need the Collection for? if its something you need to store user information for use in your code (as a temporary storage), I would suggest creating your own collection and using it.

    If its something that is needed for future references, then create a Group in your site and add the users to it.

    Does that answer your question?

    • Marked as answer by Porter Wang Wednesday, November 3, 2010 10:50 AM
    • Edited by Mike Walsh FIN Wednesday, November 3, 2010 1:02 PM sig removed - don't ask people to mark your posts
    Monday, October 25, 2010 5:39 PM

  • This is a variable collection.

    What i want is to make be able to make collection of SPUsers and then run foreach cycle on it.

    Smthn like:

     

    SPUserCollection myusers;

    SPUser myuser1;

    SPUser myuserN;

    myusers.add(myuser1);

    myusers.add(myuser2);

     

    Tuesday, October 26, 2010 6:05 AM