次の方法で共有


EventInfo.Description Property

EventInfo の説明を取得します。値の設定も可能です。

名前空間: Microsoft.SqlServer.Dts.Runtime
アセンブリ: Microsoft.SqlServer.ManagedDTS (microsoft.sqlserver.manageddts.dll 内)

構文

'宣言
Public Property Description As String
public string Description { get; set; }
public:
virtual property String^ Description {
    String^ get () sealed;
    void set (String^ value) sealed;
}
/** @property */
public final String get_Description ()

/** @property */
public final void set_Description (String value)
public final function get Description () : String

public final function set Description (value : String)

プロパティ値

説明を表す String です。

使用例

次のコード サンプルでは、Description を含む、EventInfo クラスのプロパティを返します。

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

サンプルの出力 :

Name: OnError

Creation Name: OnError

Description: Handles error events.Use to define actions to perofrm 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.

====

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

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