共用方式為


ExternalDataEventArgs 建構函式

定義

初始化 ExternalDataEventArgs 類別的新實例。

多載

ExternalDataEventArgs()

初始化 ExternalDataEventArgs 類別的新實例。

ExternalDataEventArgs(Guid)

使用工作流程的實例標識碼,初始化 ExternalDataEventArgs 類別的新實例。

ExternalDataEventArgs(Guid, IPendingWork, Object)

初始化 ExternalDataEventArgs 類別的新實例。

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

初始化 ExternalDataEventArgs 類別的新實例。

範例

下列範例示範如何從衍生類別的建構函式呼叫基底 ExternalDataEventArgs 建構函式。 此範例來自 Ordering State Machine 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

適用於