2

我想在 Google Apps 上创建联系人。我正在使用这个API

并参考此链接

在下面的代码中,我使用的是“使用 Google.GData.Contacts”

using Google.GData.Contacts;   // Using Google.GData.Contacts     
using Google.GData.Client;
using Google.GData.Extensions;
using Google.Contacts; // at this place i am getting error

错误:命名空间“Google”中不存在类型或命名空间名称“联系人”(您是否缺少程序集引用?)

我已经包含了 Google.GData.Contacts API。但它仍然给出错误。

谁能告诉我为什么会这样?我错过了任何大会参考?

我想使用:

Contact newContact = new Contact();
newContact.Title.Text = "Liz Doe";

“Google.GData.Contacts”或“Google.GData”中都不存在“联系人”。有没有其他方法可以使用它?

4

6 回答 6

0

答案是:

使用谷歌。GData .联系人;

于 2010-03-04T06:26:04.060 回答
0

就像阿德曼已经指出的那样,这可能就足够了:

使用 Google.GData.Contacts;

但你也有一条线:

使用 Google.Contacts;

第二次使用是错误的,您需要将其删除,或者该名称空间位于您尚未引用的 1 个或多个程序集中。

于 2010-03-04T06:33:44.330 回答
0

尝试

using Google.GData;
于 2010-03-04T06:35:10.963 回答
0

查看该网站,我猜您需要添加一个单独的引用才能使用 Google.Contacts。检查您的参考资料,看看您是否有可以参考的单独的 Google.Contacts 库。

于 2010-03-04T06:43:27.717 回答
0

阅读:http ://code.google.com/apis/gdata/articles/dotnet_client_lib.htmt 检查您是否关注它。

于 2010-03-04T07:44:25.670 回答
0

您可能使用了错误的版本。使用版本:1.4.0.2。

您将在 Program Files Path 中找到它

于 2010-03-04T09:38:38.560 回答