DtsContainer.LoggingMode Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Erhält oder setzt einen gültigen Wert aus der DTSLoggingMode Aufzählung, der den Logging-Modus des Containers angibt.
public:
property Microsoft::SqlServer::Dts::Runtime::DTSLoggingMode LoggingMode { Microsoft::SqlServer::Dts::Runtime::DTSLoggingMode get(); void set(Microsoft::SqlServer::Dts::Runtime::DTSLoggingMode value); };
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "LoggingModeDesc")]
public Microsoft.SqlServer.Dts.Runtime.DTSLoggingMode LoggingMode { get; set; }
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "LoggingModeDesc")>]
member this.LoggingMode : Microsoft.SqlServer.Dts.Runtime.DTSLoggingMode with get, set
Public Property LoggingMode As DTSLoggingMode
Eigenschaftswert
Gibt eine DTSLoggingMode Aufzählung zurück.
- Attribute
Beispiele
Das folgende Codebeispiel erzeugt eine Package, eine Klasse, die von DtsContainererbt. Sie Package zeigt die Nutzung mehrerer geerbter Immobilien.
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime;
namespace Microsoft.SqlServer.SSIS.Samples
{
class Program
{
static void Main(string[] args)
{
Application app = new Application();
Package pkg = new Package();
// Package name must be assigned.
pkg.Name = "My DtsContainer inheritance test package";
// Display the values that manually assigned.
Console.WriteLine("Package Name: {0}", pkg.Name);
// Packages are assigned the following default values when created.
Console.WriteLine("Package ID: {0}", pkg.ID);
Console.WriteLine("FailPackageOnFailure: {0}", pkg.FailPackageOnFailure);
Console.WriteLine("FailParentOnFailure: {0}", pkg.FailParentOnFailure);
Console.WriteLine("Locale ID: {0}", pkg.LocaleID);
Console.WriteLine("Is DefaultLocaleID? {0}", pkg.IsDefaultLocaleID);
Console.WriteLine("Isolation Level: {0}", pkg.IsolationLevel);
Console.WriteLine("LoggingMode: {0}", pkg.LoggingMode);
Console.WriteLine("MaximumErrorCount: {0}", pkg.MaximumErrorCount);
Console.WriteLine("TransactionOption: {0}", pkg.TransactionOption);
}
}
}
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
Namespace Microsoft.SqlServer.SSIS.Samples
Class Program
Shared Sub Main(ByVal args() As String)
Dim app As Application = New Application()
Dim pkg As Package = New Package()
' Package name must be assigned.
pkg.Name = "My DtsContainer inheritance test package"
' Display the values that manually assigned.
Console.WriteLine("Package Name: {0}", pkg.Name)
' Packages are assigned the following default values when created.
Console.WriteLine("Package ID: {0}", pkg.ID)
Console.WriteLine("FailPackageOnFailure: {0}", pkg.FailPackageOnFailure)
Console.WriteLine("FailParentOnFailure: {0}", pkg.FailParentOnFailure)
Console.WriteLine("Locale ID: {0}", pkg.LocaleID)
Console.WriteLine("Is DefaultLocaleID? {0}", pkg.IsDefaultLocaleID)
Console.WriteLine("Isolation Level: {0}", pkg.IsolationLevel)
Console.WriteLine("LoggingMode: {0}", pkg.LoggingMode)
Console.WriteLine("MaximumErrorCount: {0}", pkg.MaximumErrorCount)
Console.WriteLine("TransactionOption: {0}", pkg.TransactionOption)
End Sub
End Class
End Namespace
Beispielausgabe:
Paketname: Mein DtsContainer-Vererbungstestpaket
Package ID: {2C2FAA96-35BA-4C5E-A39A-C5D7D30A0D79}
FailPackageOnFailure: Falsch
FailParentOnFailure: Falsch
Gebietsschema-ID: 1033
Ist DefaultLocaleID das auch? False
Isolationsniveau: Serialisierbar
LoggingMode: UseParentSetting
MaximumErrorCount: 1
TransactionOption: Unterstützt
Hinweise
Der Logging-Modus kann bei einem bestimmten Container oder einer Aufgabe aktiviert oder deaktiviert werden, oder Sie können den Wert des Logging-Modus vom Elterncontainer erben, wenn dieser Wert auf UseParentSettinggesetzt ist.