IDTSPropertiesProvider.Properties プロパティ

定義

コンテナで使うプロパティやメソッドを持つ DtsProperty オブジェクトを含むコレクションを取得します。

public:
 property Microsoft::SqlServer::Dts::Runtime::DtsProperties ^ Properties { Microsoft::SqlServer::Dts::Runtime::DtsProperties ^ get(); };
public Microsoft.SqlServer.Dts.Runtime.DtsProperties Properties { get; }
member this.Properties : Microsoft.SqlServer.Dts.Runtime.DtsProperties
Public ReadOnly Property Properties As DtsProperties

プロパティ値

コンテナに関連するDtsPropertiesオブジェクトを含むDtsPropertyコレクションです。

IDTSPropertiesProviderインターフェースを実装するクラスの一つがPackageクラスです。 以下のコード例は、PackageクラスがPropertiesメソッドからDtsPropertiesコレクションを返す仕組みを示しています。 コード例はプロパティを繰り返し、いくつかの値を表示します。

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 p1 = new Package();  

           // Retrieve the information from the Properties collection.  
           // Each item in the collection represents a property on the  
           // object. This example reviews the properties of the   
           // Package object.  

            DtsProperties props = p1.Properties;  
            String name;  
            String path;  
            TypeCode propType;  

            foreach (DtsProperty prop in props)  
            {  
                propType = prop.Type;  
                name = prop.Name;  
                path = prop.GetPackagePath(p1);  
                Console.WriteLine("Name {0}, Type {1}, Package path{2}", name, propType, path);  
            }  
        }  
    }  
}  
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 p1 As Package =  New Package()   

           ' Retrieve the information from the Properties collection.  
           ' Each item in the collection represents a property on the  
           ' object. This example reviews the properties of the   
           ' Package object.  

            Dim props As DtsProperties =  p1.Properties   
            Dim name As String  
            Dim path As String  
            Dim propType As TypeCode  

            Dim prop As DtsProperty  
            For Each prop In props  
                propType = prop.Type  
                name = prop.Name  
                path = prop.GetPackagePath(p1)  
                Console.WriteLine("Name {0}, Type {1}, Package path{2}", name, propType, path)  
            Next  
        End Sub  
    End Class  
End Namespace  

出力例:

Certificate Context、タイプ int64、パッケージパス\Package.CertificateContext

Certificate Object、Type Object、Package path\Package.CertificateObject を名付けます

名前 CheckpointFileName、タイプ 文字列、package path\package.CheckpointFileName

名前はCheckpointUsage、Type Object、Package path\Package.CheckpointUsage

名前 CheckSignatureOnLoad、型 Boolean、package path\package.CheckSignatureOnLoad

名前設定、タイプオブジェクト、パッケージパス\package.configurations

Connections名、Type Object、Package path\Package.Connections

名前 CreationDate、Type DateTime、package path\Package.CreationDate

名前 CreationName、タイプ文字列、package path\package.CreationName

Name CreatorComputerName, type string, package path\Package.CreatorComputerName

名前 CreatorName、タイプ文字列、package path\package.CreatorName

適用対象