Class TableExtensions (2.3.0)

public static class TableExtensions

Extension methods for making it easier to work with Table

Inheritance

Object > TableExtensions

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Methods

GetExpirationTime(Table)

public static DateTimeOffset? GetExpirationTime(this Table table)

Gets the time at which this table expires, at which point it will be deleted.

Parameter
NameDescription
tableTable

The table for which to set the expiration for. Must not be null.

Returns
TypeDescription
Nullable<DateTimeOffset>

SetExpirationTime(Table, Nullable<DateTimeOffset>)

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
NameDescription
tableTable

The table for which to set the expiration for. Must not be null.

expirationNullable<DateTimeOffset>

The new expiration to be set.

Returns
TypeDescription
Table

The same table on which the change was made. To facilitate method chaining.