Condividi tramite


EventInfo.CreationName Property

Returns the string that is used by the Integration Services runtime to create an instance of the EventInfo object and to add the object to the EventInfos collection. This property is read-only.

Spazio dei nomi: Microsoft.SqlServer.Dts.Runtime
Assembly : Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property CreationName As String
public string CreationName { get; }
public:
virtual property String^ CreationName {
    String^ get () sealed;
}
/** @property */
public final String get_CreationName ()
public final function get CreationName () : String

Valore proprietà

A String that contains the name. The name may be the fully qualified assembly name (for managed assemblies), or it may be the PROGID or CLSID (for COM DLLs).

Esempio

The following code sample returns the properties of the EventInfo class, including the CreationName.

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime;

namespace Runtime_API
{
    public class DumpEventInfo
    {
        static void Main(string[] args)
        {
            Package p = new Package();
            EventInfos eis = p.EventInfos;
            foreach (EventInfo ei in eis)
            {
                Console.Out.Write("Name: ");
                Console.Out.WriteLine(ei.Name);
                Console.Out.Write("Creation Name: ");
                Console.Out.WriteLine(ei.CreationName);
                Console.Out.Write("Description: ");
                Console.Out.WriteLine(ei.Description);
                Console.Out.WriteLine("====");
            }
                }
    }
}
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
 
Namespace Runtime_API
    Public Class DumpEventInfo
        Shared  Sub Main(ByVal args() As String)
            Dim p As Package =  New Package() 
            Dim eis As EventInfos =  p.EventInfos 
            Dim ei As EventInfo
            For Each ei In eis
                Console.Out.Write("Name: ")
                Console.Out.WriteLine(ei.Name)
                Console.Out.Write("Creation Name: ")
                Console.Out.WriteLine(ei.CreationName)
                Console.Out.Write("Description: ")
                Console.Out.WriteLine(ei.Description)
                Console.Out.WriteLine("====")
            Next
        End Sub
    End Class
End Namespace

Sample Output:

Name: OnError

Creation Name: OnError

Description: Handles error events. Use to define actions to perform when an error occurs.

====

Name: OnExecStatusChanged

Creation Name: OnExecStatusChanged

Description: Handles changes of execution status. Use to define actions to perform when the execution status changes.

====

Name: OnInformation

Creation Name: OnInformation

Description: Handles information events. The menings of information events are task-defined and task-specific.

====

Name: OnPostExecute

Creation Name: OnPostExecute

Description: Handles post-execution events. Use to define post-processing actions to perform when the package is run.

====

Name: OnPostValidate

Creation Name: OnPostValidate

Description: Handles post-validation events. Use to define post-processing actions to perform during validation.

====

Name: OnPreExecute

Creation Name: OnPreExecute

Description: Handles pre-execution events. Use to define pre-processing actions to perform when the package is run.

====

Name: OnPreValidate

Creation Name: OnPreValidate

Description: Handles pre-validation events. Use to define pre-processing actions to perform during validation

====

Name: OnProgress

Creation Name: OnProgress

Description: Handles progress notifications. Use to define actions to perform at progress intervals.

====

Name: OnQueryCancel

Creation Name: OnQueryCancel

Description: Handles cancel events. Called periodically to determine whether to cancel package execution.

====

Name: OnTaskFailed

Creation Name: OnTaskFailed

Description: Handles task failures. Use to define actions to perform when a task fails.

====

Name: OnVariableValueChanged

Creation Name: OnVariableValueChanged

Description: Handles value changes in variables whose RaiseChangedEvent property is set to True. Use to define actions to perform when values change.

====

Name: OnWarning

Creation Name: OnWarning

Description: Handles warning events. Use to define actions when a warning occurs.

====

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

EventInfo Class
EventInfo Members
Microsoft.SqlServer.Dts.Runtime Namespace