EventInfo.Description プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
EventInfoの説明を取得または設定します。
public:
property System::String ^ Description { System::String ^ get(); void set(System::String ^ value); };
public string Description { get; set; }
member this.Description : string with get, set
Public Property Description As String
プロパティ値
記述を含む文字列です。
実装
例
以下のコードサンプルは、 EventInfo クラスのプロパティ、特に Descriptionを返します。
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
出力例:
名前:OnError
作成名:OnError
説明:エラーイベントを処理します。 エラーが発生した場合に実行すべきアクションを定義するために使います。
====
名前:OnExecStatus変更済み
作成名:OnExecStatusChanged
説明:実行状況の変更を処理します。 実行状態が変わったときに実行すべきアクションを定義するために使います。
====
名前:OnInformation
創設名:OnInformation
説明:情報イベントを扱います。 情報イベントのメンディングはタスクごとに定義され、タスクごとに特有です。
====
名前:OnPostExecute
作成名:OnPostExecute
説明:処刑後のイベントを担当。 パッケージ実行時に実行する後処理アクションを定義するために使用してください。
====
名称:OnPostValidate
作成名:OnPostValidate
説明:検証後のイベントを扱います。 検証中に実行すべき後処理アクションを定義するために使用してください。
====