Linguaggio

IDTSName.CreationName Proprietà

Definizione

Restituisce il nome usato dal runtime per creare un'istanza dell'oggetto e aggiungerla alla sua collezione, se esiste una collezione per l'oggetto. Questa proprietà è di sola lettura.

public:
 property System::String ^ CreationName { System::String ^ get(); };
public string CreationName { get; }
member this.CreationName : string
Public ReadOnly Property CreationName As String

Valore della proprietà

Una Stringa che contiene il nome. Il nome può essere il nome assembly completamente qualificato (per assembly gestiti), oppure PROGID o CLSID (per le DLL COM).

Esempio

La IDTSName classe viene ereditata da molte classi, inclusa la Package classe, attraverso la DtsContainer classe e nella EventsProvider classe, da cui viene ereditata nella Package classe e nella maggior parte delle altre classi. Il seguente esempio di codice mostra le IDTSName proprietà usate dalla Package classe.

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 pkg = new Package();  
            // Display the properties inherited from IDTSName.  
            Console.WriteLine("CreationName: {0}", pkg.CreationName);  
            Console.WriteLine("Name:         {0}", pkg.Name);  
            Console.WriteLine("Description: {0}", pkg.Description);  
            Console.WriteLine("ID:          {0}", pkg.ID);  
        }  
    }  
}  
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 pkg As Package =  New Package()   
            ' Display the properties inherited from IDTSName.  
            Console.WriteLine("CreationName: {0}", pkg.CreationName)  
            Console.WriteLine("Name:         {0}", pkg.Name)  
            Console.WriteLine("Description: {0}", pkg.Description)  
            Console.WriteLine("ID:          {0}", pkg.ID)  
        End Sub  
    End Class  
End Namespace  

Output di esempio:

NomeCreazione: MSDTS. Pacchetto.1

Nome: {8E2F8EC1-A6E8-4114-8760-0C1A72277B8C}

Descrizione:

ID: {8E2F8EC1-A6E8-4114-8760-0C1A72277B8C}

Si applica a