DTSEventFilterKind Enumeration
Describes the kind of event filter that is set on logging.
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
The following code example enables logging on a package, adds a log provider, then displays the default value of the EventFilterKind. Using the DTSEventFilterKind enumeration, the default value is changed.
using System; using System.Collections.Generic; using System.Text; using Microsoft.SqlServer.Dts.Runtime; namespace Microsoft.SqlServer.SSIS.Sample { class Program { static void Main(string[] args) { Package pkg = new Package(); pkg.LoggingMode = DTSLoggingMode.Enabled; LogProvider log1 = pkg.LogProviders.Add("DTS.LogProviderTextFile.1"); pkg.LoggingOptions.SelectedLogProviders.Add(log1); LoggingOptions lOpts = pkg.LoggingOptions; Console.WriteLine("EventFilterKind: {0}", pkg.LoggingOptions.EventFilterKind.ToString()); pkg.LoggingOptions.EventFilterKind = DTSEventFilterKind.Inclusion; Console.WriteLine("EventFilterKind: {0}", pkg.LoggingOptions.EventFilterKind.ToString()); } } }
Sample Output:
EventFilterKind: Exclusion
EventFilterKind: Inclusion