【发布时间】:2016-06-20 17:27:40
【问题描述】:
我有一个 Windows 应用程序可以访问 Google 电子表格来创建电话簿。当我尝试打开电话簿时,我被标记为System.NotImplementedException: The method or operation is not implemented. 我不太确定为什么,因为它似乎正在实施?
这是第一个被标记的问题:
internal object FromCertificate(X509Certificate2 certificate)
{
throw new NotImplementedException(); //Error flags this line
}
这是第二个。据我所知,这部分没有问题,但它仍然在标记异常。
ServiceAccountCredential credential = new ServiceAccountCredential(
new ServiceAccountCredential.Initializer(serviceAccountEmail)
{
Scopes = new[] { "https://www.googleapis.com/auth/spreadsheets", "https://docs.google.com/feeds" }
}.FromCertificate(certificate));
任何建议将不胜感激。我在 Visual Studio 2015 中使用 C#。
【问题讨论】:
标签: c# visual-studio-2015 google-spreadsheet-api x509certificate2 notimplementedexception