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\u003eThis webpage details the \u003ccode\u003eTableExtensions\u003c/code\u003e class, which provides extension methods to simplify working with \u003ccode\u003eGoogle.Apis.Bigquery.v2.Data.Table\u003c/code\u003e within the \u003ccode\u003eGoogle.Cloud.BigQuery.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 3.11.0, and it lists all versions from 3.11.0 down to version 2.2.0, with each link corresponding to its version of \u003ccode\u003eTableExtensions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTableExtensions\u003c/code\u003e inherits from \u003ccode\u003eObject\u003c/code\u003e and includes members such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two main methods: \u003ccode\u003eGetExpirationTime(Table)\u003c/code\u003e, which retrieves the expiration time of a specified table, and \u003ccode\u003eSetExpirationTime(Table, Nullable<DateTimeOffset>)\u003c/code\u003e, which sets a new expiration time for a given table.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetExpirationTime\u003c/code\u003e and \u003ccode\u003eSetExpirationTime\u003c/code\u003e methods use \u003ccode\u003eGoogle.Apis.Bigquery.v2.Data.Table\u003c/code\u003e objects and \u003ccode\u003eDateTimeOffset\u003c/code\u003e to manage table expiration.\u003c/p\u003e\n"]]],[],null,[]]