public static IEnumerable <string> GetSheetsName(this SheetsService service, string spreadsheetId) => service.GetSheets(spreadsheetId).Select(s => s.Properties.Title);
/// <summary> /// 取得Google Sheet工作表 /// </summary> public static Sheet GetSheet(this SheetsService service, string spreadsheetId, string sheetName) => service.GetSheets(spreadsheetId).SingleOrDefault(sheet => sheet.Properties.Title.Equals(sheetName));