Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从Google工作表中删除整行_C#_.net_Google Api_Gdata_Google Sheets Api - Fatal编程技术网

C# 从Google工作表中删除整行

C# 从Google工作表中删除整行,c#,.net,google-api,gdata,google-sheets-api,C#,.net,Google Api,Gdata,Google Sheets Api,如果我知道行索引,如何从GoogleSheet中删除整行? 此外,它应该在一批删除 我使用Google.GData.Spreadsheets 提前感谢。查看 我该怎么用C#写呢?@AmirNo Family感谢mate的链接。我只是不知道如何使用nuget包将JSON请求转换为C。 POST https://sheets.googleapis.com/v4/spreadsheets/spreadsheetId:batchUpdate { "requests": [ {

如果我知道行索引,如何从GoogleSheet中删除整行? 此外,它应该在一批删除

我使用
Google.GData.Spreadsheets

提前感谢。

查看


我该怎么用C#写呢?@AmirNo Family感谢mate的链接。我只是不知道如何使用nuget包将JSON请求转换为C。
POST https://sheets.googleapis.com/v4/spreadsheets/spreadsheetId:batchUpdate

{
  "requests": [
    {
      "deleteDimension": {
        "range": {
          "sheetId": sheetId,
          "dimension": "ROWS",
          "startIndex": 0,
          "endIndex": 3
        }
      }
    },
    {
      "deleteDimension": {
        "range": {
          "sheetId": sheetId,
          "dimension": "COLUMNS",
          "startIndex": 1,
          "endIndex": 4
        }
      }
    },
  ],
}