Aracılığıyla paylaş


IDTSPropertiesProvider.Properties Özelliği

İçeren koleksiyon alır DtsProperty özellikleri ve yöntemleri ile kullanılacak olan nesneleri kapsayıcı.

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

Sözdizimi

'Bildirim
ReadOnly Property Properties As DtsProperties
    Get
'Kullanım
Dim instance As IDTSPropertiesProvider
Dim value As DtsProperties

value = instance.Properties
DtsProperties Properties { get; }
property DtsProperties^ Properties {
    DtsProperties^ get ();
}
abstract Properties : DtsProperties
function get Properties () : DtsProperties

Özellik Değeri

Tür: Microsoft.SqlServer.Dts.Runtime.DtsProperties
A DtsProperties topluluğu içeren DtsProperty ile ilişkili nesneler kapsayıcı.

Örnekler

Uygulayan sınıflarından birini IDTSPropertiesProvider bir arabirim Package WalkTreeAşağıdaki kod örneği gösterir nasıl Package sınıfı döndürür bir DtsProperties koleksiyon dan Properties yöntem.Kod örneği, sonra birkaç değerlerini görüntüleme özellikleri sırayla dolaşır.

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

Örnek Çıktı:

CertificateContext, tür Int64 paketi yol\Package.CertificateContext adı

CertificateObject türü nesne paketi yol\Package.CertificateObject adı

CheckpointFileName türü String paketi yol\Package.CheckpointFileName adı

CheckpointUsage türü nesne paketi yol\Package.CheckpointUsage adı

CheckSignatureOnLoad, Boole türü, paketi yol\Package.CheckSignatureOnLoad adı

Yapılandırmalar, nesne türü, paketi yol\Package.Configurations adı

Bağlantılar, nesne türü, paketi yol\Package.Connections adı

CreationDate türü DateTime paketi yol\Package.CreationDate adı

CreationName türü String paketi yol\Package.CreationName adı

CreatorComputerName türü String paketi yol\Package.CreatorComputerName adı

OluşturucuAdı türü String paketi yol\Package.CreatorName adı