Share via


ExternalDataEventArgs 建構函式

定義

初始化 ExternalDataEventArgs 類別的新執行個體。

多載

ExternalDataEventArgs()

初始化 ExternalDataEventArgs 類別的新執行個體。

ExternalDataEventArgs(Guid)

使用工作流程的執行個體識別項,初始化 ExternalDataEventArgs 類別的新執行個體。

ExternalDataEventArgs(Guid, IPendingWork, Object)

初始化 ExternalDataEventArgs 類別的新執行個體。

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

初始化 ExternalDataEventArgs 類別的新執行個體。

範例

下列範例示範如何從衍生類別的建構函式呼叫基底 ExternalDataEventArgs 建構函式。 這個範例來自<訂購狀態機器 SDK>範例。 如需詳細資訊,請參閱 排序狀態機器範例

public override void Dispose()
{
    try
    {
        IDesignerLoaderHost host = LoaderHost;
        if (host != null)
        {
            host.RemoveService(typeof(IIdentifierCreationService));
            host.RemoveService(typeof(IMenuCommandService));
            host.RemoveService(typeof(IToolboxService));
            host.RemoveService(typeof(ITypeProvider), true);
            host.RemoveService(typeof(IWorkflowCompilerOptionsService));
            host.RemoveService(typeof(IEventBindingService));
        }
    }
    finally
    {
        base.Dispose();
    }
}
Public Overrides Sub Dispose()
    Try
        Dim host As IDesignerLoaderHost = LoaderHost
        If host IsNot Nothing Then
            host.RemoveService(GetType(IIdentifierCreationService))
            host.RemoveService(GetType(IMenuCommandService))
            host.RemoveService(GetType(IToolboxService))
            host.RemoveService(GetType(ITypeProvider), True)
            host.RemoveService(GetType(IWorkflowCompilerOptionsService))
            host.RemoveService(GetType(IEventBindingService))
        End If
    Finally
        MyBase.Dispose()
    End Try
End Sub

ExternalDataEventArgs()

初始化 ExternalDataEventArgs 類別的新執行個體。

public:
 ExternalDataEventArgs();
public ExternalDataEventArgs ();
Public Sub New ()

適用於

ExternalDataEventArgs(Guid)

使用工作流程的執行個體識別項,初始化 ExternalDataEventArgs 類別的新執行個體。

public:
 ExternalDataEventArgs(Guid instanceId);
public ExternalDataEventArgs (Guid instanceId);
new System.Workflow.Activities.ExternalDataEventArgs : Guid -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid)

參數

instanceId
Guid

工作流程執行個體的工作流程執行個體識別項,包含預期要處理事件的 HandleExternalEventActivity

適用於

ExternalDataEventArgs(Guid, IPendingWork, Object)

初始化 ExternalDataEventArgs 類別的新執行個體。

public:
 ExternalDataEventArgs(Guid instanceId, System::Workflow::Runtime::IPendingWork ^ workHandler, System::Object ^ workItem);
public ExternalDataEventArgs (Guid instanceId, System.Workflow.Runtime.IPendingWork workHandler, object workItem);
new System.Workflow.Activities.ExternalDataEventArgs : Guid * System.Workflow.Runtime.IPendingWork * obj -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid, workHandler As IPendingWork, workItem As Object)

參數

instanceId
Guid

工作流程執行個體的工作流程執行個體識別項,包含預期要處理事件的 HandleExternalEventActivity

workHandler
IPendingWork

允許引發事件之外部程式碼參與批次的 IPendingWork

workItem
Object

包含引發事件之外部程式碼的物件。

適用於

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

初始化 ExternalDataEventArgs 類別的新執行個體。

public:
 ExternalDataEventArgs(Guid instanceId, System::Workflow::Runtime::IPendingWork ^ workHandler, System::Object ^ workItem, bool waitForIdle);
public ExternalDataEventArgs (Guid instanceId, System.Workflow.Runtime.IPendingWork workHandler, object workItem, bool waitForIdle);
new System.Workflow.Activities.ExternalDataEventArgs : Guid * System.Workflow.Runtime.IPendingWork * obj * bool -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid, workHandler As IPendingWork, workItem As Object, waitForIdle As Boolean)

參數

instanceId
Guid

工作流程執行個體的工作流程執行個體識別項,包含預期要處理事件的 HandleExternalEventActivity

workHandler
IPendingWork

允許引發事件之外部程式碼參與批次的 IPendingWork

workItem
Object

包含引發事件之外部程式碼的物件。

waitForIdle
Boolean

指出工作流程是否應該先變成閒置再引發此事件的值,否則為 false

適用於