次の方法で共有


SqlTrackingWorkflowInstance.WorkflowType プロパティ

定義

ワークフロー インスタンスの Type を取得または設定します。

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

プロパティ値

ワークフロー インスタンスの Type

次のコード例は、表示されたワークフローのリストに含まれているすべての 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

適用対象

こちらもご覧ください