Google スプレッドシートにアクセスして電話帳を作成する Windows アプリがあります。電話帳を開こうとすると、System.NotImplementedException: The method or operation is not implemented.
「実装されているように見えるので、理由がよくわかりません」というフラグが表示されます。
これは、問題が報告されている最初の場所です。
internal object FromCertificate(X509Certificate2 certificate)
{
throw new NotImplementedException(); //Error flags this line
}
これが2番目です。私が知る限り、この部分には何の問題もありませんが、まだ例外のフラグが立てられています。
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# を使用しています。