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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage details the `TableExtensions` class, which provides extension methods to simplify working with `Google.Apis.Bigquery.v2.Data.Table` within the `Google.Cloud.BigQuery.V2` namespace."],["The 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 `TableExtensions`."],["`TableExtensions` inherits from `Object` and includes members such as `GetHashCode()`, `GetType()`, `MemberwiseClone()`, and `ToString()`."],["The class includes two main methods: `GetExpirationTime(Table)`, which retrieves the expiration time of a specified table, and `SetExpirationTime(Table, Nullable\u003cDateTimeOffset\u003e)`, which sets a new expiration time for a given table."],["The `GetExpirationTime` and `SetExpirationTime` methods use `Google.Apis.Bigquery.v2.Data.Table` objects and `DateTimeOffset` to manage table expiration."]]],[]]