Share via


SqlTrackingWorkflowInstance.Initialized プロパティ

定義

このワークフロー インスタンスの最初の DateTime がワークフロー ランタイム エンジンによって要求された時刻を示す TrackingChannel を取得または設定します。

public:
 property DateTime Initialized { DateTime get(); void set(DateTime value); };
public DateTime Initialized { get; set; }
member this.Initialized : DateTime with get, set
Public Property Initialized As DateTime

プロパティ値

このワークフロー インスタンスの最初の DateTime がワークフロー ランタイム エンジンによって要求された時刻を示す TrackingChannel

次のコード例は、表示されたワークフローのリストに含まれているすべての SqlTrackingWorkflowInstance オブジェクトに関する情報を取得する方法を示しています。 このコードでは、ListViewItem 変数内の SqlTrackingWorkflowInstance ごとに displayedWorkflows を作成します。 各 ListViewItem には、文字列表記の WorkflowInstanceInternalIdWorkflowType、および Status プロパティが含まれています。 次に、アイテムを workflowStatusList に追加します。 前に指定したプロパティ値と文字列表記の Initialized プロパティを使用して、WorkflowStatusInfo に追加する新しい workflowStatusList オブジェクトを作成します。

次のコード例は、Mainform.cs ファイルに含まれているワークフロー モニターの SDK サンプルの一部です。 詳細については、「 ワークフロー モニター」を参照してください。

static void WriteTerminatedEventArgs(string eventDescription, TrackingWorkflowTerminatedEventArgs terminatedEventArgs, DateTime eventDataTime)
{
    Console.WriteLine("\nTerminated Event Arguments Read From Tracking Database:\n");
    Console.WriteLine("EventDataTime: " + eventDataTime.ToString());
    Console.WriteLine("EventDescription: " + eventDescription);
    if (null != terminatedEventArgs.Exception)
    {
        Console.WriteLine("TerminatedEventArgs Exception Message: " + terminatedEventArgs.Exception.Message.ToString());
    }
}
Shared Sub WriteTerminatedEventArgs(ByVal eventDescription As String, ByVal terminatedEventArgs As TrackingWorkflowTerminatedEventArgs, ByVal eventDataTime As DateTime)
    Console.WriteLine(vbCrLf + "Terminated Event Arguments Read From Tracking Database:")
    Console.WriteLine("EventDataTime: " + eventDataTime.ToString(CultureInfo.CurrentCulture))
    Console.WriteLine("EventDescription: " + eventDescription)
    If terminatedEventArgs.Exception IsNot Nothing Then
        Console.WriteLine("TerminatedEventArgs Exception Message: " + terminatedEventArgs.Exception.Message.ToString())
    End If
End Sub

適用対象

こちらもご覧ください