IDTSName.CreationName Propiedad

Definición

Devuelve el nombre utilizado por el motor en tiempo de ejecución para crear una instancia del objeto y agregarlo a su colección, si hay una colección para el objeto. Esta propiedad es de sólo lectura.

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

Valor de propiedad

Cadena que contiene el nombre. El nombre puede ser el nombre del ensamblado completo (para los ensamblados administrados), o puede ser PROGID o CLSID (para las DLL COM).

Ejemplos

La IDTSName clase se hereda por muchas clases, incluida la Package clase , a través de la DtsContainer clase y en la EventsProvider clase , que desde allí, se hereda en la Package clase y la mayoría de las demás clases. En el ejemplo de código siguiente se muestran las IDTSName propiedades usadas por la Package clase .

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  

Salida del ejemplo:

CreationName: MSDTS. Package.1

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

Descripción:

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

Se aplica a