Sequence.Properties Propriété

Définition

Retourne une collection d'objets DtsProperty qui contiennent des propriétés liées au conteneur de séquences.

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

Valeur de propriété

Collection DtsProperties.

Implémente

Exemples

L’exemple de code suivant crée un Sequence objet, puis récupère la Properties collection, itérateur et affiche les noms et les types de propriétés trouvés dans la collection.

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)  
        {  
            Package package = new Package();  
            Sequence seq = (Sequence)package.Executables.Add("STOCK:SEQUENCE");  
            DtsProperties seqProps = seq.Properties;  

            foreach (DtsProperty pc in seqProps)  
            {  
                Console.WriteLine("Name: {0}, Property Kind {1}", pc.Name, pc.PropertyKind);  
            }  
        }  
    }  
}  
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 package As Package =  New Package()   
            Dim seq As Sequence = CType(package.Executables.Add("STOCK:SEQUENCE"), Sequence)  
            Dim seqProps As DtsProperties =  seq.Properties   

            Dim pc As DtsProperty  
            For Each pc In seqProps  
                Console.WriteLine("Name: {0}, Property Kind {1}", pc.Name, pc.PropertyKind)  
            Next  
        End Sub  
    End Class  
End Namespace  

Exemple de sortie :

Nom : CreationName, Property Kind Other

Nom : DelayValidation, Property Kind Other

Nom : Description, Type de propriété Autre

Nom : Disable, Property Kind Other

Nom : DisableEventHandlers, Property Kind Other

Nom : EventHandlers, Property Kind Other

Nom : EventInfos, Property Kind Other

Nom : Exécutables, Type de propriété Other

Nom : ExecutionDuration, Type de propriété Autre

Nom : ExecutionResult, Property Kind Other

Nom : ExecutionStatus, Type de propriété Autre

Nom : FailPackageOnFailure, Type de propriété Other

Nom : FailParentOnFailure, Property Kind Other

Nom : ForcedExecutionValue, Property Kind Other

Nom : ForceExecutionResult, Property Kind Other

Nom : ForceExecutionValue, Property Kind Other

Nom : ID, Type de propriété Autre

Nom : IsDefaultLocaleID, Property Kind Other

Nom : IsolationLevel, Type de propriété Other

Nom : LocaleID, Type de propriété Autre

Nom : LogEntryInfos, Property Kind Other

Nom : LoggingMode, Property Kind Other

Nom : LoggingOptions, Property Kind Other

Nom : MaximumErrorCount, Type de propriété Autre

Nom : Name, Property Kind Other

Nom : Parent, Type de propriété Autre

Nom : PrecedenceConstraints, Property Kind Other

Nom : StartTime, Property Kind Other

Nom : StopTime, Type de propriété Autre

Nom : TransactionOption, Type de propriété Autre

Nom : VariableDispenser, Property Kind Other

Nom : Variables, Type de propriété Autre

S’applique à