DTSPropertyKind 列挙型

定義

プロパティの種類を表す値を格納します。

public enum class DTSPropertyKind
public enum DTSPropertyKind
type DTSPropertyKind = 
Public Enum DTSPropertyKind
継承
DTSPropertyKind

フィールド

Connection 3

このプロパティは接続です。

Other 0

このプロパティは使用可能な列挙子で表すことができません。

Sensitive 4

このプロパティは機密情報です。

VariableReadOnly 1

このプロパティは読み取り専用変数です。

VariableReadWrite 2

このプロパティは読み取り/書き込み変数です。

次のコード サンプルは、特定のプロパティの種類を取得する方法を示しています。

static void Main(string[] args)  
    {  
        // The variable pkg points to the location  
        // of the ExecuteProcess package sample   
        // that is installed with the SSIS samples.  
        string packageFile = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx";  

        Application application = new Application();  
        Package package = application.LoadPackage(packageFile, null);  

        // 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 properties = package.Properties;  

        String propertyName;  
        DTSPropertyKind propertyKind;  
        String packagePath;  
        TypeCode propertyType;  

        foreach (DtsProperty property in properties)  
        {  
            propertyType = property.Type;  
            propertyName = property.Name;  
            propertyKind = property.PropertyKind;  
            packagePath = property.GetPackagePath(package);  
            Console.WriteLine("Property Type: {0}, Property Name: {1}, Property Kind: {2}, Package Path: {3} ",   
            propertyType, propertyName, propertyKind, packagePath);  
        }  
    }  
Shared  Sub Main(ByVal args() As String)  
        ' The variable pkg points to the location  
        ' of the ExecuteProcess package sample   
        ' that is installed with the SSIS samples.  
        Dim packageFile As String =  "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\ExecuteProcess Sample\ExecuteProcess\UsingExecuteProcess.dtsx"   

        Dim application As Application =  New Application()   
        Dim package As Package =  application.LoadPackage(packageFile,Nothing)   

        ' 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 properties As DtsProperties = package.Properties   

        Dim propertyName As String  
        Dim propertyKind As DTSPropertyKind  
        Dim packagePath As String  
        Dim propertyType As TypeCode  

        Dim property As DtsProperty  
        For Each property In properties  
            propertyType = property.Type  
            propertyName = property.Name  
            propertyKind = property.PropertyKind  
            packagePath = property.GetPackagePath(package)  
            Console.WriteLine("Property Type: {0}, Property Name: {1}, Property Kind: {2}, Package Path: {3} ",   
            propertyType, propertyName, propertyKind, packagePath)  
        Next  
End Sub  

適用対象