언어

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  

샘플 출력:

Name CertificateContext, Type Int64, 패키지 path\Package.CertificateContext

이름 CertificateObject, Type Object, Package path\Package.CertificateObject

CheckpointFileName, 타입 문자열, 패키지 path\package.CheckpointFileName 이름

CheckpointUsage, Type Object, package path\Package.CheckpointUsage 이름

Name CheckSignatureOnLoad, 유형 Boolean, package path\package.CheckSignatureOnLoad

이름 구성, 타입 객체, 패키지 경로\Package.Configurations

이름 연결, 타입 객체, 패키지 path\package.connections

이름 생성일, 타입 DateTime, 패키지 경로\패키지.생성날짜

이름 CreationName, 타입 문자열, 패키지 path\Package.CreationName

이름 CreatorComputerName, 타입 문자열, 패키지 path\Package.CreatorComputerName

이름 CreatorName, 타입 문자열, 패키지 path\Package.CreatorName

적용 대상