ServerTraceEventSet.TraceDatabase Property
SQL Server 2008
Gets or sets a Boolean property value that specifies whether the Database category events are recorded in the trace.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)