|
Hi,
I'm trying to extend a custom profile as outlined
here.
I can create new user with custom profile and populate his custom properties, but I run into a problem when I try to find existing ones, using the code below -
UserList users = bridge.GetUserContainer(false);
UserProfile user = users.Children.OfType<UserProfile>().Where(u => u.Email == "john@doe.com").FirstOrDefault();
Iget the following error -
N2.Collections.IContentItemList<N2.ContentItem>' does not contain a definition for 'OfType' and no extension method 'OfType' accepting a first argument of type 'N2.Collections.IContentItemList<N2.ContentItem>' could be found (are you missing
a using directive or an assembly reference?)
Any thoughts?
|