public static Table SetExpirationTime(this Table table, DateTimeOffset? expiration)
Sets the time at which this table expires, at which point it will be deleted.
If this is not set and the dataset does not have a default
expiration period, the table will persist until it is deleted.
Parameters
Name
Description
table
Google.Apis.Bigquery.v2.Data.Table
The table for which to set the expiration for.
Must not be null.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.Cloud.BigQuery.V2.TableExtensions\u003c/code\u003e is 3.11.0, with multiple previous versions available, down to version 2.2.0, accessible for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTableExtensions\u003c/code\u003e is a static class within the \u003ccode\u003eGoogle.Cloud.BigQuery.V2\u003c/code\u003e namespace designed to provide extension methods that simplify working with \u003ccode\u003eGoogle.Apis.Bigquery.v2.Data.Table\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetExpirationTime\u003c/code\u003e method retrieves the deletion time of a specified table.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetExpirationTime\u003c/code\u003e method allows users to set or modify the expiration time of a table, which determines when the table will be automatically deleted.\u003c/p\u003e\n"]]],[],null,[]]