Aracılığıyla paylaş


Package.CheckpointFileName Özelliği

Alır veya paket yeniden etkinleştirir denetim noktası bilgilerini yakalar dosyasının adını ayarlar.

Ad Alanı:  Microsoft.SqlServer.Dts.Runtime
Derleme:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)

Sözdizimi

'Bildirim
Public Property CheckpointFileName As String
    Get
    Set
'Kullanım
Dim instance As Package
Dim value As String

value = instance.CheckpointFileName

instance.CheckpointFileName = value
public string CheckpointFileName { get; set; }
public:
property String^ CheckpointFileName {
    String^ get ();
    void set (String^ value);
}
member CheckpointFileName : string with get, set
function get CheckpointFileName () : String
function set CheckpointFileName (value : String)

Özellik Değeri

Tür: System.String
A dize , denetim noktası dosyası adını içerir.

Açıklamalar

paket başarıyla tamamlandığında, bu dosya silinir.Denetim noktaları kullanma hakkında daha fazla bilgi için bkz: Paket denetim noktaları kullanarak başarısız yeniden başlatma.

Örnekler

Aşağıdaki örnek bir paketi yükler ve sonra da dahil olmak üzere birkaç paket özelliklerini alır CheckpointFileName.

Class PackageTest
    {
        static void Main(string[] args)
        {
            // The variable pkg points to the location of the
            // ExecuteProcess package sample
            // installed with the samples.
            string pkg = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx";
            
            Application app = new Application();
            Package p = app.LoadPackage(pkg, null);
    
            // Once the package is loaded, this sample can
           // query on several properties
            long cc = p.CertificateContext;
            string cfn = p.CheckpointFileName;
            DTSProtectionLevel pl = p.ProtectionLevel;
            DTSPackageType dpt = p.PackageType;

            Console.WriteLine("CertificateContext = " + cc);
            Console.WriteLine("CheckpointFileName = " + cfn);
            Console.WriteLine("ProtectionLevel = " + pl);
            Console.WriteLine("PackageType = " + dpt);
        }
    }
Class PackageTest
    {
        Shared  Sub Main(ByVal args() As String)
            ' The variable pkg points to the location of the
            ' ExecuteProcess package sample
            ' installed with the samples.
            Dim pkg As String =  "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx" 
 
            Dim app As Application =  New Application() 
            Dim p As Package =  app.LoadPackage(pkg,Nothing) 
 
            ' Once the package is loaded, this sample can
           ' query on several properties
            Dim cc As Long =  p.CertificateContext 
            Dim cfn As String =  p.CheckpointFileName 
            Dim pl As DTSProtectionLevel =  p.ProtectionLevel 
            Dim dpt As DTSPackageType =  p.PackageType 
 
            Console.WriteLine("CertificateContext = " + cc)
            Console.WriteLine("CheckpointFileName = " + cfn)
            Console.WriteLine("ProtectionLevel = " + pl)
            Console.WriteLine("PackageType = " + dpt)
        End Sub
    }

Örnek Çıktı:

CertificateContext = 0

CheckpointFileName =

ProtectionLevel = EncryptSensitiveWithUserKey

PackageType = Default