Hi,

I just tried for to get the groups/category and value is empty.
I used the following code.

foreach(GroupMembership membership in contact.GroupMembership)
        {
            if ( !String.IsNullOrEmpty(category) && !
String.IsNullOrEmpty(membership.Value))
                category  += ",";
            category += membership.Value;
        }

Is it right way to get the groups/category for a contact?

I set the ProtocolMajor = 2;
Raj

On Jan 8, 4:28 pm, "Jesse Mandel" <[email protected]> wrote:
> There isn't a separate download but you can force version 2.0 by setting it
> in the Service:
>
> Service s = new Service("appname");
> s.ProtocolMajor = 2;
> s.ProtocolMinor = 0;
>
> Then just select the groups as normal and you should see the system groups.
> REMEMBER this is NOT supported so you should only use this in development
> until it's supported.
>
> I am not sure what the max limit on NumberToRetrieve is but I use 1000 and
> it works fine. That should cover most people.
>
> ______________________www.jessemandel.com
>
> On Thu, Jan 8, 2009 at 3:07 PM, Raj <[email protected]> wrote:
>
> > Thanks for the reply.
>
> > How can I download the version 2.0 for .net?
> > If it is not available for download, is there any way to modify the
> > current library to retirve the contact information?
>
> > what is the max limit for "NumberToRetrieve" property?
>
> > Thanks
> > Raj
>
> > On Jan 8, 11:30 am, "Jesse Mandel" <[email protected]> wrote:
> > > The system groups (like My Contacts and Friends) are in version 2 of the
> > API
> > > which not implemented in the .NET client library yet. Hopefully in a few
> > > weeks but in the meantime, setting the service version to 2.0 will make
> > it
> > > sort of work. This SHOULD NOT be used in release software until it's
> > > officially supported but it's useful for development.
> > > You need to set the NumberToRetrieve property to retrieve more than 200
> > > contacts.
>
> > > -Jesse
> > > ______________________www.jessemandel.com
>
> > > On Thu, Jan 8, 2009 at 10:22 AM, Raj <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I'm able to retrieve all my contacts using .NET library.
> > > > I have few questions?
>
> > > > 1. How to get the group name where the contact is belong i.e "My
> > > > contact" or Freinds etc
> > > > 2. How do I know there are more contacts to be downloaded? If the user
> > > > has 200 contacts, then how can I download all the contacts in one
> > > > time?
>
> > > > Thanks
> > > > Raj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to