Condividi tramite


Sequence.Properties Proprietà

Definizione

Restituisce una raccolta di oggetti DtsProperty che contengono proprietà relative al contenitore Sequenza.

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

Valore della proprietà

Raccolta DtsProperties.

Implementazioni

Esempio

Nell'esempio di codice seguente viene creato un Sequence oggetto, quindi viene recuperato l'insieme, l'iterazione Properties e la visualizzazione dei nomi e dei tipi di proprietà presenti nell'insieme.

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  

Esempio di output

Name: CreationName, Property Kind Other

Name: DelayValidation, Property Kind Other

Name: Description, Property Kind Other

Nome: Disable, Property Kind Other

Nome: DisableEventHandlers, Tipo di proprietà Altro

Name: EventHandlers, Property Kind Other

Name: EventInfos, Property Kind Other

Nome: eseguibili, tipo di proprietà altro

Name: ExecutionDuration, Property Kind Other

Name: ExecutionResult, Property Kind Other

Name: ExecutionStatus, Property Kind Other

Name: FailPackageOnFailure, Proprietà Kind Other

Name: FailParentOnFailure, Property Kind Other

Nome: ForcedExecutionValue, tipo di proprietà Altro

Nome: ForceExecutionResult, Tipo di proprietà Altro

Nome: ForceExecutionValue, Tipo di proprietà altro

Name: ID, Property Kind Other

Name: IsDefaultLocaleID, Tipo di proprietà Altro

Name: IsolationLevel, Property Kind Other

Name: LocaleID, Property Kind Other

Name: LogEntryInfos, Property Kind Other

Name: LoggingMode, Property Kind Other

Nome: LoggingOptions, Tipo di proprietà Altro

Nome: MaximumErrorCount, Tipo di proprietà Altro

Name: Name, Property Kind Other

Name: Parent, Property Kind Other

Name: PrecedenceConstraints, Property Kind Other

Name: StartTime, Property Kind Other

Name: StopTime, Property Kind Other

Name: TransactionOption, Property Kind Other

Name: VariableDispenser, Property Kind Other

Nome: variabili, tipo di proprietà altro

Si applica a